Skip to content

Instantly share code, notes, and snippets.

@eladb
Created March 20, 2014 11:03
Show Gist options
  • Save eladb/9661425 to your computer and use it in GitHub Desktop.
Save eladb/9661425 to your computer and use it in GitHub Desktop.
- (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];
}];
}];
}
@eladb
Copy link
Author

eladb commented Mar 20, 2014

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment