繁体   English   中英

当我使用UIImagePicker从iPad的照片库中选择图像时,模拟器崩溃了

[英]when i pick image from Photos Library in iPad using UIImagePicker, simulator getting crashed

-(void) pickImage{
 UIImagePickerController *picker = [[UIImagePickerController alloc] init];
  picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
  picker.delegate = self;
   [self presentModalViewController:picker animated:YES];

}


- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo{
   UIImage *myImage =image;
}

当称为模拟器的pickImage崩溃并在终端中显示消息时,如下所示:

2012-09-08 18:53:50.953 NewExample[4645:207] UIStatusBarStyleBlackTranslucent is not available on this device.

任何想法? 提前致谢。

只需检查这些链接。

崩溃iPad照片选择器

“ UIStatusBarStyleBlackTranslucent在此设备上不可用。忽略Info.plist中的UIStatusBarStyle键。” - 该怎么办?

iPad半透明状态栏?

iPad不支持UIStatusBarStyleBlackTranslucent 这就是为什么您会崩溃的原因。

检查此链接如何在iPad中使用UIImagePickerController? 在ipad图像选择器中,应使用uipopover控制器显示。

我的理解是您无法从模拟器中显示图像选择器。 验证相机是否可用于该设备并显示图像选择器视图。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM