我正在尝试使用以下代码记录图片,但每当代码到达NSLog(imView)行时,它都会给我这个错误。我试图拉一个人的个人资料照片,然后显示它。
NSDictionary* propic = [friend objectForKey:@"picture"];
NSDictionary* data = [propic objectForKey:@"data"];
NSString* imgURL = [data objectForKey:@"url"];
NSData * imageData = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString: imgURL]];
UIImageView *imView = [[UIImageView alloc] initWithImage:[UIImage imageWithData: imageData]];
NSLog(imView);