开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜