- (void)viewDidLoad {
[super viewDidLoad];
//创建imageview
UIImageView *imageView=[[UIImageView alloc]init];
// UIImageView *imageView=[[UIImageView alloc]initWithCoder:];
// UIImageView *imageView=[[UIImageView alloc]initWithFrame:];
// UIImageView *imageView=[[UIImageView alloc]initWithImage:];
// UIImageView *imageView=[UIImageView alloc][initWithImage: highlightedImage:];
//设置image的frame
imageView.frame=CGRectMake(0, 0, 100, 100);
//设置高亮
//imageView.highlighted=YES;
//设置图片(本地图片)
imageView.image=[UIImage imageNamed:@"icon_customer_mine_dresscollocation.png"];
//设置高亮图片(本地图片)
iOS学习(3)——UIImageView
最新推荐文章于 2024-04-25 20:29:36 发布