[self.mainview removeFromSuperview];
self.mainview = [[UIView alloc]init];
for (int i = 0; i < model.signalList.count; i++) {
这里是循环的控件
Airindex = [[AirindexView alloc]init]
[self.mainview addSubview:Airindex];
}
这样就不会重复叠加出现了
[self.mainview removeFromSuperview];
self.mainview = [[UIView alloc]init];
for (int i = 0; i < model.signalList.count; i++) {
这里是循环的控件
Airindex = [[AirindexView alloc]init]
[self.mainview addSubview:Airindex];
}
这样就不会重复叠加出现了