应用程序在 iOS15.2 <ESTabBarController: 0x7fb60688da00> 上崩溃,这不是一种 UITabBarController。 iOS 15.2

问题描述 投票:0回答:2

*** 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“-tabBarController 必须返回 UITabBarController 子类的实例。 返回了 ,这不是一种 UITabBarController。 以 NSException 类型的未捕获异常终止 CoreSimulator 783.5 - 设备:iPhone 13 (FF523057-CBC8-4BD0-8315-6F674C6EB86B) - 运行时:iOS 15.2 (19C51) - 设备类型:iPhone 13

在 iOS 15 之前一直工作正常。当我在 iOS 15.2 上运行我的项目时,问题开始了。

objective-c xcode uitabbarcontroller tabbar ios15.2
2个回答
0
投票
 [self customizeTabBarForController:_tabBarController];
[self.view addSubview:_tabBarController.view];
[_tabBarController didMoveToParentViewController:self];

在 tabbarviewcontroller 中使用它


0
投票

从问题中很难看出,但是关于ESTabBarController,是这个库吗?

可能这个库在新的 iOS 上有问题,或者你使用 pod install 更新了该库,但现在里面有些东西坏了。

© www.soinside.com 2019 - 2024. All rights reserved.