-(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
甲基稱爲模擬器和表示消息在終端如以下挑從照片庫中的iPad圖像:當我使用UIImagePicker,模擬器獲得墜毀
2012-09-08 18:53:50.953 NewExample[4645:207] UIStatusBarStyleBlackTranslucent is not available on this device.
任何想法? 在此先感謝。
你是否在使用UIStatusBarStyleBlackTranslucent?以及您使用iPad或模擬器的設備? – TheTiger
不,我沒有使用UIStatusBarStyleBlackTranslucent任何地方,而我使用iPad模擬器5.0。 – Nookaraju
而在iPhone模擬器其工作正常。 – Nookaraju