摘要: 一般都是多线程造成的,某一个线程在操作一个对象时,另一个线程将此对象释放,此时就有可能造成野指针的问题。一种解决办法是如果都是UI操作则将这些操作都放在主线程去执行。 通常出现此问题的地方都在RAC,或者某些异步执行的block中。 <!--StartFragment--> 以下这种情况也会产生野指 阅读全文
posted @ 2018-11-07 15:21 ximenchuixie 阅读(461) 评论(0) 推荐(0) 编辑
摘要: https://developer.apple.com/documentation/uikit/touches_presses_and_gestures/using_responders_and_the_responder_chain_to_handle_events 当打开app触摸屏幕时,系统会 阅读全文
posted @ 2018-11-07 15:19 ximenchuixie 阅读(204) 评论(0) 推荐(0) 编辑