iphone - TabbarController 在 3.0 中崩溃

标签 iphone objective-c ios uitabbarcontroller crash

我正在使用 TabBarController ,它在我的 ipod 中运行良好。

但我的应用程序在 3.0 时崩溃了。有什么帮助吗?

self.window.rootViewController = self.tabBarController; //crashing here

和日志显示

-[UIWindow setRootViewController:]: unrecognized selector sent to instance 0x127c80
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -    
[UIWindow setRootViewController:]: unrecognized selector sent to instance 0x127c80'

最佳答案

This可能会告诉你正确的方向。让我知道问题是否仍然存在。

由于在不同版本的 iOS 上执行,该方法可能已被弃用。

关于iphone - TabbarController 在 3.0 中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6965109/

相关文章:

iphone - 如何获取CCSprite中特定像素的RGBA颜色

iphone - 无法从另一个应用程序内启动 Google map 应用程序

ios - 初始化 UIView 子类属性如何影响 superview 的中心?

ios - 适用于通用应用程序的iOS设计方向问题

iphone - 我有一个像素长度的彩色图像,我想根据新的长度值按比例放大它。

objective-c - OS X 图标大小

ios - UITableView 中的二维数组

objective-c - 在 connectionDidFinishLoading :, NSURLConnection 委托(delegate)方法中发布后无法收到通知

ios - 如何使 SwiftUi 按钮的文本变大和/或加粗

mysql - 如何将图像从 Drupal 字段加载到 UIImageView?