多个view赋值或者创建 超过两个以上要用循环
UIImageView*tempImageView =self.picView2_one;
NSArray*array2 = [news.smallImgUrls componentsSeparatedByString:@","];
for(inti =0; i < (array2.count>3?3: array2.count) ; i++) {
switch(i) {
case0:
tempImageView =self.picView2_one;
break;
case1:
tempImageView =self.picView2_two;
break;
case2:
tempImageView =self.picView2_three;
break;
default:
break;
}
NSString*iconURLString1 = [serverURLStringstringByAppendingString:array2[i]];
[tempImageViewsd_setImageWithURL:[NSURLURLWithString:iconURLString1]placeholderImage:[UIImageimageNamed:@"iconHome"]];
}