i'm trying present uiimagepickercontroller controller presented on ipad in uimodalpresentationformsheet mode.
but i'm getting following error
*** terminating app due uncaught exception 'uiapplicationinvalidinterfaceorientation', reason: 'supported orientations has no common orientation application, , [puuialbumlistviewcontroller shouldautorotate] returning yes'
- (void)showpickerwithsourcetype:(uiimagepickercontrollersourcetype)sourcetype { uiimagepickercontroller *picker = [[uiimagepickercontroller alloc] init]; picker.delegate = self; picker.allowsediting = yes; picker.sourcetype = sourcetype; [self presentviewcontroller:picker animated:yes completion:nil]; } how can present in landscape mode?
Comments
Post a Comment