tableviewcell 侧滑删除 点击返回按钮 程序崩溃 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated insta
来源:互联网 发布:今天耐克淘宝抢购 编辑:程序博客网 时间:2024/06/05 17:22
IOS6中 tableViewCell侧滑,处于编辑状态 点击返回上个页面 没有任何问题
但是在IOS7以后的系统中 这样操作会出现message sent to deallocated instance 0x12e23ac50错误
原因是下面这个方法的使用导致的
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
解决办法
1,
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
如果此方法没有用到,删掉就可以了
2,如果一定要用到此方法,在
- (void)viewWillDisappear:(BOOL)animated方法中添加
_tableView.editing = NO;这句代码就可以解决了
0 0
- tableviewcell 侧滑删除 点击返回按钮 程序崩溃 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated insta
- tableView滑动删除返回错误 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated instance
- tableView滑动删除返回错误 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated instance 0x10930c1
- tableView:canEditRowAtIndexPath:]: message sent to deallocated instance
- *** -[AlwayedDownVC tableView:canEditRowAtIndexPath:]: message sent to deallocated instance 0x17a971
- [**ViewController respondsToSelector:]: message sent to deallocated instance崩溃问题解决方法
- iOS开发 [SY_InformationController respondsToSelector:]: message sent to deallocated崩溃信息
- 崩溃 [XXXX respondsToSelector:]: message sent to deallocated instance 0x7fe2d3e404f0
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- message sent to deallocated instance
- java/jsp实现SQLServer2012windows验证登录的相关处理操作
- 书上永远不会告诉你的一些接插件知识
- 文章标题
- vc++ 如何自己写c库函数lib
- 模拟新浪微博随便看看栏目
- tableviewcell 侧滑删除 点击返回按钮 程序崩溃 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated insta
- 数据结构之双链表
- 近段研究sip服务器和客户端的体会
- Python基础技术问题总结
- 4. oracle学习入门系列之四 oracle数据库简介
- iOS 测试自动化框架——smallapple
- python 第十一周 python条件与循环语句
- JSON-lib与Google-gson比较
- STL hashmap