我使用以下方法将一些 UIViews 添加到我的视图中:
[self.view addSubview:myStickerView]; // this line is called every time when I select a button from ScrollView.
所以,我myStickerView
的self.view
.
现在,当我调用此行时:[myStickerView removeFromSuperview];
它只会删除我的最后一个myStickerView
.
如何删除所有 UIViews ( myStickerView
)?