UIImage* image = [UIImage imageNamed:@"image.png"];
UIImageView* imageView = [[[UIImageView alloc] initWithImage:image] autorelease];
imageView.frame = CGRectMake(0, 0, 300, 200);
imageView.layer.cornerRadius = 8;
imageView.layer.masksToBounds = YES;
///显示图片大小
imageView1.contentMode = UIViewContentModeCenter;