Created
March 20, 2014 11:03
-
-
Save eladb/9661425 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
[self hopTo:@"splash" then:^{ | |
[self hopTo:@"onboarding" then:^{ | |
[self login]; | |
}]; | |
}]; | |
} | |
- (void)login | |
{ | |
[self hopTo:@"signup_login" then:^{ | |
[self hopTo:@"main" then:^{ | |
[self login]; | |
}]; | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an example of how to recursively go back to the login/signup view controller when the main view controller
unhop
(e.g. signs out).