摘要: 正文以触摸事件为例,说一下响应者链当发生触摸事件后,Runloop监听到事件,会将其事件打包成一个UIEvent事件,并放入当前活动UIApplication的事件队列中,再会传给UIWindow,UIWindow会用hitTest:withEvent方法裙子此次事件操作所在的视图,以这个的形式找到... 阅读全文
posted @ 2015-12-28 23:18 喵喵yy 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 正文 1.NSTimer 和 NSRunloop 关系 滑动页面时 timer 会暂停的问题,为什么会暂停,怎么解决? 因为:用scheduledTimerWithTimeInterval:注册timer时runloop会默认为NSDefaultRunLoopMode这个mode,当scrollVi 阅读全文
posted @ 2015-12-28 21:42 喵喵yy 阅读(265) 评论(0) 推荐(0) 编辑