I add some UIViews to my view using following method:
[self.view addSubview:myStickerView]; // this line is called every time when I select a button from ScrollView.
So, I can have a lot of myStickerView
on my self.view
.
Now, when I call this line: [myStickerView removeFromSuperview];
it will remove only my last myStickerView
.
How can I remove all UIViews (myStickerView
)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…