标签:
UIImageView 是用来设置图片的显示方式
- (void)viewDidLoad { [super viewDidLoad]; // UIImageView *imangview=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"3.jpg"]]; imangview.frame=CGRectMake(20, 20, 50, 100); //imangview.image=[UIImage imageNamed:@"3.jpg"]; [self.view addSubview:imangview]; }
运行结果如下:
标签:
原文地址:http://www.cnblogs.com/wyhwyh2114/p/4956260.html