UIImagePickerControllerCameraCaptureModePhoto在IOS 7中不起作用

时间:2013-09-12 06:30:50

标签: ios7 photolibrary

在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有什么问题

2 个答案:

答案 0 :(得分:1)

在这里你可以使用自定义框架并加载popover;)

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

查看UIImagePickerController crash only on iOS 7 - iPad

答案 1 :(得分:0)

它可能是iOS 7 Bug。可能你的个人热点目前正在尝试将其关闭并运行应用程序