nested push animation can result in corrupted navigation bar

澹台宾白
2023-12-01

今天在项目中遇到这个问题:当自定义的tabbar从上一个界面push到下一个界面的时候,点击back返回后,back按钮没有消失,主要原因是由于在push过的时候使用了searchbar的编辑代理,返回了yes,导致原来的视图控制器没有释放掉,解决办法当然是将返回值改为NO就OK了

设置不显示系统的back按钮 [self.navigationItem setHidesBackButton:YES];

2014-08-01 19:21:34.287 MTime[6393:70b] nested push animation can result in corrupted navigation bar

2014-08-01 19:21:34.311 MTime[6393:70b] Unbalanced calls to begin/end appearance transitions for <JHSearchViewController: 0x8ab5e80>.

2014-08-01 19:21:34.839 MTime[6393:70b] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted;


#pragma mark -searchBarDeleGate
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar
{
[self.navigationController hidesBottomBarWhenPushed];
JHSearchViewController *searCtl = [[JHSearchViewController alloc] init];
[self.navigationController pushViewController:searCtl animated:NO];
return NO;
}




 类似资料:

相关阅读

相关文章

相关问答