我有一个outlet集合,并试图通过从集合数组访问它并调用removefromsuperview来删除其中一个视图。这最终从接口构建器中删除了附加到集合的所有视图。任何帮助都将不胜感激!
assignments.removeAtIndex(i).removeFromSuperview()发布于 2015-01-22 09:39:20
首先从赋值数组中移除一个对象,然后对整个数组调用removeFromSuperview。
看起来你需要做的就是assignments[i].removeFromSuperview()
https://stackoverflow.com/questions/28079493
复制相似问题