造成[CALayer release]: message sent to deallocated instance 的原因通常是可能僵尸现象,CALayer是随便的地址,是原来对象变量(随便类型)被释放了。通过通过查找僵尸变量解决,参见:http://blog.sina.com.cn/s/blog_5fde608901010pl5.html 及 http://stackoverflow.com/questions/7402171/calayer-release-message-sent-to-deallocated-instance