Pregunta

In IOS6 I am using following method to get photo from I Pad photo Library.But now its not working for IOS7

UIImagePickerController* picker = [[UIImagePickerController alloc] init]; 
    picker.sourceType = UIImagePickerControllerCameraCaptureModePhoto; 
    picker.delegate = self; 

    UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:picker];
    [popover presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
    [picker release], picker = nil;

What is issue with IOS7

¿Fue útil?

Solución

Here you can use custom Frame and load the popover ;)

[popOver presentPopoverFromRect:CGRectMake(self.view.frame.size.width-50, 50, 10, 10) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

Check out UIImagePickerController crash only on iOS 7 - iPad

Otros consejos

Its Probably an iOS 7 Bug. Probably your personal hotspot is on at the moment try to turn it off at and run the application

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top