在IOS6中,我使用以下方法从I Pad照片库中获取照片。但现在它不适用于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;
IOS7有什么问题
答案 0 :(得分:1)
在这里你可以使用自定义框架并加载popover;)
[popOver presentPopoverFromRect:CGRectMake(self.view.frame.size.width-50, 50, 10, 10) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
答案 1 :(得分:0)
它可能是iOS 7 Bug。可能你的个人热点目前正在尝试将其关闭并运行应用程序