Why do I get an exception when pulling an image from UIImagePickerController?
i get image from uiimagepickerviewcontroller and set it in global file but when i tr开发者_如何学编程y to retrieve it from global it will not display in uiimageview
following is code of delegate method form which i get image
-(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];
}
error at display time
bad exception application is terminate
I think the problem is with this line.
NSLog(@"global image %@",[Global getimage]);
giving image to the log??? you just try to comment out this line and run and check whether the application runs or not
精彩评论