![](/img/trans.png)
[英]UIImagePicker not showing Original Image from Photos Library in OS 3.1.2
[英]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.
任何想法? 提前致謝。
只需檢查這些鏈接。
“ UIStatusBarStyleBlackTranslucent在此設備上不可用。忽略Info.plist中的UIStatusBarStyle鍵。” - 該怎么辦?
iPad不支持UIStatusBarStyleBlackTranslucent
。 這就是為什么您會崩潰的原因。
檢查此鏈接如何在iPad中使用UIImagePickerController? 在ipad圖像選擇器中,應使用uipopover控制器顯示。
我的理解是您無法從模擬器中顯示圖像選擇器。 驗證相機是否可用於該設備並顯示圖像選擇器視圖。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.