OGeek|极客世界-中国程序员成长平台

标题: ios - 非常奇怪的崩溃报告,我无法重现关于 segues 的信息 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:34
标题: ios - 非常奇怪的崩溃报告,我无法重现关于 segues 的信息

我在 Crashlytics 中有这个错误:

Fatal Exception NSGenericException
Could not find a navigation controller for segue 'lanToBusiness'. Push segues can only be used when the source controller is managed by an instance of UINavigationController.

我只在应用程序的一个地方有那个 segue。这是它的代码。

- (void)performPlanToBusinessSegueOnMainThread
{
    [spinner stopAnimating];
    [self performSegueWithIdentifier"lanToBusiness" sender:self];
}

每当我尝试使用应用程序的那个区域时,它都能正常工作。而且错误本身似乎只发生在 5% 的用户身上。有谁知道这可能是什么原因?我正在使用 Storyboard。

谢谢!



Best Answer-推荐答案


您需要将 View Controller 嵌入 UINavigationController Example

关于ios - 非常奇怪的崩溃报告,我无法重现关于 segues 的信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18171508/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4