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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -