iphone - UIImagePickerController crashes in iPad -


-(ibaction)selectpressed:(id)sender {     uiimagepickercontroller *picker = [[uiimagepickercontroller alloc] init];     picker.delegate = self;     picker.sourcetype = uiimagepickercontrollersourcetypephotolibrary;     [self presentmodalviewcontroller:picker animated:yes];     [picker release]; } 

i testing code on ipad , iphone simulators. in iphone simulator (and on real iphones too) it's ok - gallery appears. on ipad simulator (i don't have device), crashes. ideas why?

please read exception messages in device log:

on ipad, uiimagepickercontroller must presented via uipopovercontroller


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -