I followed parse.com tutorials on how to implement login + register + segue to main controller if registration or login is successful. This works beautiful.
I then wanted to implement a side navigation using SWRevealViewController. I followed APPCODA link on this and got it working only when "SWRevealViewController" is the initial view controller.
When i have my parse login controller as initial i can't see anything from the navigational controller aka "SWRevealViewController."
how would i be able fix this, make my login/register controllers the initial controllers and still be able to have SWRevealViewController when login/register is successful?
i would appreciate any help or pointers.
below is my APPDelegate.m
#import "AppDelegate.h"
#import <Parse/Parse.h>
#import <GoogleMaps/GoogleMaps.h>
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
LoginView *lv = [[LoginView alloc]init];
SidebarViewController *sbvc = [[SidebarViewController alloc]init];
UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:lv];
UINavigationController *menuVC = [[UINavigationController alloc]initWithRootViewController:sbvc];
SWRevealViewController *revealController = [[SWRevealViewController alloc]initWithRearViewController:menuVC frontViewController:nav];
revealController.delegate = self;
self.menu = revealController;
self.window.rootViewController = self.menu;
[GMSServices provideAPIKey:@"XXXXXXXXXX"];
[Parse setApplicationId:@"XXXXXXXXXXXXX"
clientKey:@"XXXXXXXXXXXXX"];
[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];
return YES;
}
UINavigationControllerand (when signup/login is finished), I push to my rootUIViewControllerand (in that controller'sviewDidAppear:) then replace theviewControllersstack for theUINavigationControllerwithout animation. If that sounds like what you're looking for, I can post my code as an answer. - mbm29414