modifying layer that is being finalized
2012-03-05 10:10
267 查看
http://www.cnblogs.com/crazyflyingsnow/archive/2011/08/03/2126381.html
当你在iphone程序编程过程中,遇到"modifying layer that is being finalized",你要怎么办呢?一般来说这个问题都是由于重复释放一个UIView导致的。例如:
这个时候,当程序运行到[view release]的时候就会出现如题所说的问题。所以,如果view已经被释放(包括动态释放),那么就不要再调用release方法了,因为当这个view从其父view中被移除的时候,也会被释放
THE END !
当你在iphone程序编程过程中,遇到"modifying layer that is being finalized",你要怎么办呢?一般来说这个问题都是由于重复释放一个UIView导致的。例如:
UIView *view = [[UIView alloc] init] autorelease]; [THE_SUPER_VIEW addSubview:view]; [view release]
这个时候,当程序运行到[view release]的时候就会出现如题所说的问题。所以,如果view已经被释放(包括动态释放),那么就不要再调用release方法了,因为当这个view从其父view中被移除的时候,也会被释放
THE END !
相关文章推荐
- modifying layer that is being finalized
- modifying layer that is being finalized
- 当你遇到"modifying layer that is being finalized"的时候怎么办?
- 当你遇到"modifying layer that is being finalized"的时候怎么办?
- How to: Determine if a Package that is About to be Compiled is Being Used Currently (文档 ID 1054939.6
- QPaintDevice: Cannot destroy paint device that is being painted
- These are broadcasts whose data is held by the system after being finished, so that clients can quic
- 错误案例(QPaintDevice: Cannot destroy paint device that is being painted)
- Failed to load viewstate.The control tree into which viewstate is being loaded must match the control tree that......
- solving problem about that dll is missing
- QT出现 Cannot create children for a parent that is in a different thread 的解决方法:
- Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 500.19 – Internal Server Error"
- Android Please ensure that adb is correctly located at问题解决,重启就好,别的都扯淡
- WCF:Maximum number of items that can be serialized or deserialized in an object graph is '65536'.
- Trying to reload asset from disk that is not stored on disk
- [ZOJ 3354] DoIt is Being Flooded [最短路+并查集]
- zoj 3785 What day is that day?(找规律,KMP)
- If that is your wish——赛前最后宣言!
- The disk is offline because it has a signature collision with another disk that is online