Shinning River
Shinning River

Reputation: 813

UIImagePickerControllerCameraCaptureModePhoto not working in IOS 7

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

Upvotes: 3

Views: 546

Answers (2)

Yatin
Yatin

Reputation: 26

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

Upvotes: 1

DIJO JOSEPH
DIJO JOSEPH

Reputation: 364

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

Upvotes: 0

Related Questions