Part of my AppDelegate code is:
UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController; UINavigationController *na
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.