I\'m doing the Facebook integration tutorial, I want to show my MainViewViewController if the user has a valid token for the current state otherwise I want to show LoginView
You can launch a new viewController from root like this in Objective-C
UIViewController *presenter = ((AppDelegate *)[[UIApplication sharedApplication] delegate]).window.rootViewController;
[presenter presentViewController:yourViewController animated:YES completion:nil];
Don't forget to add this:
#import "AppDelegate.h"