我从uiimagepickerviewcontroller获取图像并将其设置在全局文件中但是当我尝试从全局检索它时它将不会显示在uiimageview中
以下是我得到图像的委托方法表单的代码
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
{
UIImage *tempimg = image;
[Global setimage:tempimg];
isphototeken = TRUE;
[picker dismissModalViewControllerAnimated:NO];
[tblsubmenu reloadData];
NSLog(@"global image %@",[Global getimage]);
[picker release];
}
显示时错误
错误的异常应用程序终止
答案 0 :(得分:0)
我认为问题在于这一行。
NSLog(@"global image %@",[Global getimage]);
将图像提供给日志??? 你只是试着注释掉这一行并运行并检查应用程序是否运行