有一个UIImageview,根据用户点击的按钮:
UIImage *img = [[UIImage alloc] initWithData:image];
self.imgToDisplay = [[UIImageView alloc]initWithImage:img];
// I try to use this to see the image:
[self.imgToDisplay setNeedsDisplay];
给UIImageview对象分配一个图片之后进行刷新view,怎么显示图片?