modifying layer that is being finalized

 


遇到modifying layer that is being finalized这样一个问题。

原因是因为在我的-dealloc方法中

[button release];导致。

应该写成:

[button removeFromSuperview];

 

上面的问题就不再出现了。

 

 

p.p1 {margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; line-height: 21.0px; font: 11.0px Menlo; color: #464646} p.p2 {margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; line-height: 21.0px; font: 11.0px Menlo; color: #464646; min-height: 13.0px}

modifying layer that is being finalized

 

当一个 view 已经 release 再次释放 会出现 modifying layer that is being finalized 错误

你可能感兴趣的:(finalize)