2016年9月11日

摘要: 链接结论最好是在不需要的时候就移除掉。如果不是特别苛刻,可以直接在dealloc函数里写。因为dealloc函数一定会被调用的。在dealloc函数中移除的可能问题由于dealloc在Runloop结束时会被调用。如果在Runloop调用之前,又有一个通知到来,会造成不可预知的问题。比如一个VC被pop出去以后,由于网络延迟等原因,在同一个Runloop中,一个通知又被抛出,那么这个被pop的VC... 阅读全文
posted @ 2016-09-11 22:44 花老🐯 阅读(125) 评论(0) 推荐(0) 编辑
摘要: delegate的属性不是weakNSTimer没有invalidateblock中的强引用调用了performSelector,退出时没有cancelPerformSelectorsWithTargetThis method sets up a timer to perform the aSelector message on the current thread’s run loop. The... 阅读全文
posted @ 2016-09-11 22:21 花老🐯 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 每个动画和图层在时间上都有它自己的层级概念,相对于它的父亲来测量。对图层调整时间将会影响到它本身和子图层的动画,但不会影响到父图层。对CALayer或者CAGroupAnimation调整duration和repeatCount/repeatDuration属性并不会影响到子动画。但是beginTime,timeOffset和speed属性将会影响到子动画。全局时间和本地时间系统有提供一个函数CA... 阅读全文
posted @ 2016-09-11 08:41 花老🐯 阅读(372) 评论(0) 推荐(0) 编辑

导航