gpt4 book ai didi

iOS 8 iPad : Could not load NIB in bundle

转载 作者:行者123 更新时间:2023-11-29 01:03:00 25 4
gpt4 key购买 nike

我的应用程序崩溃了,但我似乎找不到问题所在。

启动后,我调用 performSegueWithIdentifier 将用户移动到正确的 ViewController。这有效,但在运行 iOS 8 的 iPad 上除外(具体来说,到目前为止它似乎发生在 8.3、8.4 和 8.4.1 上)。较新的 iPad 和 iPhone 没问题。

该应用程序有一个 SplitViewController(它是在调用前面提到的 performSegueWithIdentifier 时创建的),所以这可能与问题有关,因为它在 iPad 上的显示方式与在 iPhone 上的显示方式不同。

准确的错误是:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'I9T-iy-59z-view-exp-vQ-8nn'

最佳答案

这可能被认为是 iOS 错误。我找不到任何 Open Radar 或错误报告,但请查看以下问题:

1 Terminating app: Could not load NIB in bundle: 'NSBundle ...' with name '7bK-jq-Zjz-view-r7i-6Z-zg0'

2 Could not load NIB in bundle: 'NSBundle when using storyboarding

所以我建议在 UITabBarController 和每个 UITableViewController subview 之间插入一个 UINavigationController。作为这个答案:https://stackoverflow.com/a/31196701/821053

或者,您可以从 MasterDetail 中删除 Storyboard segues 并以编程方式添加它们:

let master = self.storyboard?.instantiateViewControllerWithIdentifier("SplitMasterController")
let detail = self.storyboard?.instantiateViewControllerWithIdentifier("SplitDetailController")
self.viewControllers = [master!, detail!]

关于iOS 8 iPad : Could not load NIB in bundle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36789906/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com