摘要: (1)在UIViewController里面使用了timer,会使得controller被retain,因此在viewdisapper时应将timer置为nil,否则controller的dealloc不会被执行。(2)如果在UIViewController里面使用ASIHttprequest发送了async请求,并且将request的delegate设置为controller,若请求没回来时就销毁了controller,会使得request的delegate变为野指针,解决方案是:销毁controller时,调用request的cancel来取消请求,或者将request的delegate设 阅读全文
posted @ 2013-08-28 17:26 酷酷的冥王星 阅读(289) 评论(0) 推荐(0) 编辑