UIImagePickerControllerCameraCaptureModePhoto not working in IOS 7

545 views Asked by At

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

2

There are 2 answers

0
Yatin On BEST ANSWER

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

0
DIJO JOSEPH On

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