I need to know my winow.rootviewcontroller name.
For example
UITabBarController *demoTabBarController = [[UITabBarController alloc] init];
[self.demoTabBarController setDelegate:self];
self.demoTabBarController.viewControllers = [NSArray arrayWithObjects:mainNavController, searchView, challengeView, nil];
self.window.rootViewController = self.demoTabBarController;
so in NSLog i want demoTabBarController as result. Is there any way i can achieve that?
Note that i dont want the class name of rootviewcontroller.