reason: 'Supported orientations has no common orientation with the application, and [PUUIAlbumListViewController shouldAutorotate] is returning YES'
因为系通相册是默认支持竖屏,如果要横屏时打开系统相册,你要在AppDelegate.m中添加如下方法
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)//iPhone
return UIInterfaceOrientationMaskAll;
else//iPad
return UIInterfaceOrientationMaskAllButUpsideDown;
}
然后为UIImagePickerController添加拓展
- (BOOL)shouldAutorotate{
return NO;
}
- (NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscape;
}