我一直以错误结束,说有不兼容的指针将 UIIMAGE 分配给 NSString。
self.imageNames = [NSArray arrayWithObjects:@"shop_deal.png",@"Date.png",@"Recreation.png",@"Productivity.png",nil];
UIImageView *imgView =[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 150)];
imgView.image = [UIImage imageNamed:_imageNames];
[self addSubview:imgView];
我在这里做错了什么......