列表返回按钮重叠问题。

wangxiongtao 2014-12-04 02:52:33

就一个导航栏,里面有个列表。
如果点击列表,然后进去后快速点击返回,就会有这个重叠的问题,同时报错:Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.但程序还能继续进行。




模拟器没事儿,就手机会有这中情况,也许是模拟器点的没那么快吧。
...全文
166 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangxiongtao 2014-12-04
  • 打赏
  • 举报
回复
引用 1 楼 zhanglei5415 的回复:
看这个地址: http://www.cocoachina.com/bbs/read.php?tid-110206.html
这是我的代码: viewController = [[BaseViewController alloc]initWithNibName:@"BaseViewController" bundle:nil]; UIBarButtonItem *customLeftBarButtonItem = [[UIBarButtonItem alloc] init]; customLeftBarButtonItem.title = @"返回"; self.navigationItem.backBarButtonItem = customLeftBarButtonItem; [customLeftBarButtonItem release]; viewController.navigationController.navigationBar.translucent = YES; [self.navigationController pushViewController:viewController animated:YES]; [viewController release]; 确实是只有点的快才会有这情况,我看帖子里说要延时,加个timer吗?延时多久合适?
wangxiongtao 2014-12-04
  • 打赏
  • 举报
回复
引用 1 楼 zhanglei5415 的回复:
看这个地址: http://www.cocoachina.com/bbs/read.php?tid-110206.html
这是我的代码: viewController = [[BaseViewController alloc]initWithNibName:@"BaseViewController" bundle:nil]; UIBarButtonItem *customLeftBarButtonItem = [[UIBarButtonItem alloc] init]; customLeftBarButtonItem.title = @"返回"; self.navigationItem.backBarButtonItem = customLeftBarButtonItem; [customLeftBarButtonItem release]; viewController.navigationController.navigationBar.translucent = YES; [self.navigationController pushViewController:viewController animated:YES]; [viewController release]; 确实是只有点的快才会有这情况,我看帖子里说要延时,加个timer吗?延时多久合适?
ReyZhang 2014-12-04
  • 打赏
  • 举报
回复

29,031

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧