I ran into a problem accessing photo library in iOS7 (iOS6 is OK). It seems navigation bar overlaps the photo album view, I tried to set picker.edgesForExtendedLayout = UIRectEdgeNone;
but it doesn't work.
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
picker.edgesForExtendedLayout = UIRectEdgeNone;
}
[self presentViewController:picker animated:YES completion:nil];
Look at my screenshot
This works for me:
UIImagePickerController set translucent = NO to navigation Bar
After this, implement this code in your UIImagePickerController delegate:
Swift version of the above answer:
As user2192708 mentioned, I think the main issue here is changing the default translucent property of the picker navigationBar and I'm not sure you need to change anything else:
This will cause the the navigation bar to use the UINavigationBar appearance if you set this somewhere in your app or the "default" if not.