我有一个应用程序(仅限LandScape模式)我正在处理,其中有几个区域用户可以拍照或选择现有照片 . 从相机或照片库返回时,视图将不会自动返回横向模式(您必须将iPad倾斜),否则您可以看到大部分白色 . 我尝试使用以下但它没有任何影响:
- (BOOL)shouldAutorotateToInterfaceOrientation:
(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
图片是风景,但应用程序的布局仍然是纵向推送到相机和后面 .
有没有人有关于如何让它正确自动旋转回来的想法?