尝试使用 uiimageviews 的 nsarray 创建一个 for 循环,但似乎无法让 cgrectmake 工作。
Location = CGRectMake(10, 10, 97, 110);
NSArray *cardImages = [[NSArray alloc]initWithObjects:car1,car2,card3,car4,car5,car6,car7,car8,car9,car10,car11, nil];
for (UIImageView *image in cardImages) {
image.frame = Location;
image.image = [UIImage imageNamed:@"ace.png"];
}