我有这样的代码:IOS:删除ImageView的
for(Contact *contact in myArray){
if(...){
UIImageView *fix = [[UIImageView alloc] initWithImage:myImage];
[self.view addSubview:fix];
[fix setFrame:[contact square]];
return;
}
}
在这段代码我在self.view添加ImageView的,但在我的应用我把这个“为”很多次,终于我有我的self.view与4或5 imageView“修复”。 从self.view中删除所有这些imageView的方法是什么?
return-statement将返回该方法。 – vikingosegundo