iOS编程modifying layer that is being finalized错误解决方案

iOS编程modifying layer that is being finalized错误解决方案
错误:modifying layer that is being finalized

原因:对于同一个UIView对象,重复进行release操作就会导致该错误发生。

解决方案一:检查代码,确保相应的view对象只被释放一次。
解决方案二:使用removeFromSuperView代替release。

你可能感兴趣的:(iOS编程modifying layer that is being finalized错误解决方案)