“Unrecognized selector sent to instance” error

前端 未结 3 1011
走了就别回头了
走了就别回头了 2021-01-14 07:09

Part of my AppDelegate code is:

UITabBarController *tabBarController 
    = (UITabBarController *)self.window.rootViewController;

UINavigationController *na         


        
3条回答
  •  我在风中等你
    2021-01-14 07:46

    You are obviously receiving different type of object on index = 0.

    If you are using storyboard go there and open Navigator > find specific controller > see Relationships. This order can be used when referencing its viewControllers collection.

提交回复
热议问题