我将其分类UIImagePickerController
并实现为@implementation
- (BOOL)shouldAutorotate
它工作正常,但问题是:
以横向模式拍摄时,显示以纵向模式显示,拍摄后,拍摄的图像正确显示(横向模式)
为什么显示方向会发生变化
我的代码在这里列出:
@interface NonRotateUIImagePickerViewController:UIImagePickerController
- (BOOL)shouldAutorotate;
@end
@implementation NonRotateUIImagePickerViewController
- (BOOL)shouldAutorotate {
return NO;
}
@end
前:
https://skydrive.live.com/?cid=eb7f2f7c40e359ee#cid=EB7F2F7C40E359EE&id=EB7F2F7C40E359EE!493
之后: https ://skydrive.live.com/?cid=eb7f2f7c40e359ee#cid=EB7F2F7C40E359EE&id=EB7F2F7C40E359EE!492