Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 iPad/iPhone 模拟器上,我的应用程序运行良好。在任一设备上,我都会得到一个 SIGABRT @ [self.window addSubview:viewController.view];
两个 XIB 文件(MainWindow.xib 和 appNameViewController.xib)似乎设置正确,但我怀疑问题出在哪里(如果我注释掉添加子视图,则应用程序会加载到设备上)。但是,由于它在模拟器中运行良好,因此很难排除故障,我正在寻找一些技巧。
没有太多事情要做,但是如果您手动手动加载 xib:
initWithName:bundle:
检查以确保名称的大小写相同。该设备在访问内容时区分大小写。