ios - 在 UITabBarController 上推送 UINavigationController 时 UITableViewCell 消失

标签 ios uinavigationcontroller uitabbarcontroller

我向 UITabBarController 的 viewControllers 添加了 6 个导航 Controller 。与往常一样,将创建一个更多选项卡以列出最后两个。问题是:在更多表格 View 中选择一个表格单元格后,该单元格的内容在 View Controller 插入之前淡出并消失。然后,在我通过单击后退按钮返回更多表格 View 之后,该单元格的内容再次显示。我想原因是它自己的导航 Controller 中有更多表格 View ,并且它推送了另一个导航 Controller (由我创建)。我不想删除我的导航 Controller ,因为我想允许用户使用 UITabBarController 的编辑功能重新排列选项卡。谁能建议我应该做什么?

最佳答案

在 AppDelegate 中创建 6 个导航 Controller 的实例并保留它们。并在dealloc方法中释放

关于ios - 在 UITabBarController 上推送 UINavigationController 时 UITableViewCell 消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5777668/

相关文章:

UINavigationController 的 setViewControllers 在 IOS10 中添加后退按钮

uiviewcontroller - 标题较长时,在iOS 7中将backBarButtonItem重命名

ios - 关于 Apple Store 中的出版物的问题

ios8:如何使用 NSURLSession 在后台上传 100 多张照片?可用空间问题

ios - bolt Apple Mach-O 链接器错误

iOS6启用微博

ios - 即使在 CLLocationManager 上明确调用 stopUpdatingLocation 后,状态栏上的位置服务指示器仍然出现

ios - 稍后在导航 Controller 的层次结构中抓取 View

objective-c - 通过代码将标题/图标等设置为在 IB 中创建的 TabBarItem?

Swift - TabBarController - 在运行时决定 segue