如何在iOS5中设置方向?

时间:2012-01-11 09:03:17

标签: iphone ios5

在iOS4.3中,我们这样做了:

[[UIDevice currentDevice] setOrientation:***];

但现在,xCode告诉我,setOrientation未声明方法UIDevice 基本上,我需要以横向方式呈现UIImagePickerController 。我所有的应用程序都是横向的。 我该怎么做?


我知道,有很多类似的问题,但所有问题都与iOS4有关。它现在不起作用......

UIImagePickerController *picker=[[UIImagePickerController alloc] init];
picker.delegate=self;
picker.sourceType=UIImagePickerControllerSourceTypeSavedPhotosAlbum;
[self presentViewController:picker animated:YES completion:^{
}];

0 个答案:

没有答案