适配ios6 Assertion failure in -[UISearchDisplayController setActive:animated:]
来源:互联网 发布:网络赚钱是真的吗 编辑:程序博客网 时间:2024/06/05 17:35
or : navigation controller must not change between -setActive:YES and -setActive:NO
在使用UISearchDisplayController点击searchbar的取消以及遮盖灰色部分的时候有调用popViewControllerAnimated出现
只需要在界面在下面2个地方处理:
//修复点击遮盖灰色部分
-(void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller{ [self.navigationController popViewControllerAnimated:YES]; [self.searchDisplayController setActive:NO animated:NO];}
//修复点击取消
- (void)viewWillDisappear:(BOOL)animated { [self.searchDisplayController setActive:NO animated:YES]; [super viewWillDisappear:animated];}
0 0
- 适配ios6 Assertion failure in -[UISearchDisplayController setActive:animated:]
- Assertion failure in -[GPUImageMovieWriter createDataFBO]
- *** Assertion failure in -[UITableView _endCellAnimationsWithContext:]
- Assertion failure in -[UIView layoutSublayersOfLayer:],
- Assertion failure in -[UICGColor encodeWithCoder:]
- *** Assertion failure in -[UITableView layoutSublayersOfLayer:]
- Assertion failure in -[UIView layoutSublayersOfLayer:]
- Assertion failure in -[MASViewConstraint install]
- *** Assertion failure in -[UICollectionViewData validateLayoutInRect:]
- Assertion failure in -[UICollectionView layoutSublayersOfLayer:]
- Assertion failure in -[UITableView layoutSublayersOfLayer:]
- Assertion failure in -[UICollectionViewData validateLayoutInRect:],
- *** Assertion failure in -[MBProgressHUD initWithView:],
- Assertion failure in -[XXX addChild:z:tag:]
- Assertion failure in -[UITableView _endCellAnimationsWithContext:]---错误
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- 开发包含folder的TAB页FORM
- Android 4.0的图形硬件加速及绘制技巧(1)
- 安卓 字符串操作 split 里面的分隔符 是需要转义的
- 如何适配iPhone6及Plus
- 各种浏览器内核的区别
- 适配ios6 Assertion failure in -[UISearchDisplayController setActive:animated:]
- [LeetCode] Single Number
- 短信api服务
- grep与正则表达式
- android通用適配器
- 安装并使用—带你体验全新Windows 10
- iOS Core Location 实现定位
- android存储访问框架Storage Access Framework
- IOS之以UIBezierPath绘制饼状图