ViewController无法自动销毁
来源:互联网 发布:mac 磁盘工具找回照片 编辑:程序博客网 时间:2024/05/20 09:44
1. block 中不要使用 self,改用weakself
错误
self.tableView.mj_header= [MJRefreshNormalHeaderheaderWithRefreshingBlock:^{
[selfpullDownAction];
}];
正确
WEAKSELF
self.tableView.mj_header= [MJRefreshNormalHeader headerWithRefreshingBlock:^{
[weakSelf pullDownAction];
}];
0 0
- ViewController无法自动销毁
- ViewController刚刚push就自动销毁
- Form Sheet的ViewController无法自动隐藏键盘的解决方法
- 问题:viewController不会调用dealloc()不会销毁
- 非模态对话框自动销毁
- U3d 粒子自动销毁
- DestroyWindow无法销毁的问题
- 自动销毁单例指针
- 线程自动创建与销毁
- dotween 防止sequence自动销毁
- 自动销毁的MessageBoxTimeout()函数
- ViewController
- ViewController
- ViewController
- ViewController
- ViewController
- ViewController
- ViewController
- monkey 命令
- Hibernate使用二级缓存时,createSQLQuery需要注意的问题
- Insert Delete GetRandom O(1) - Duplicates allowed
- UPDATE语句
- 利用jquery控制全选全不选按钮
- ViewController无法自动销毁
- toj 4611 Repairing a Road
- Android 事件分发一
- 【zzuli-oj】-985的方格难题(DP)
- SetTimer 几种用法(定时器)
- js 的 val() 和 text() 和 html()的区别与共性
- Eclipse:Could not create the view: Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.j
- 234.[LeetCode]Palindrome Linked List
- AndroidStudio中的小提示