0
-(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.

任何想法?提前致谢。

4

1 回答 1

0

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

于 2013-08-07T04:12:34.260 回答