Skip to content

Instantly share code, notes, and snippets.

@atwalsh
Last active August 29, 2015 14:15
Show Gist options
  • Save atwalsh/7a914c46487363d1a90a to your computer and use it in GitHub Desktop.
Save atwalsh/7a914c46487363d1a90a to your computer and use it in GitHub Desktop.
//inside didFinishLaunchingWithOptions in deleagte
if ([PFUser currentUser]) {
// Present wall straight-away
[self presentWallViewControllerAnimated:NO];
} else {
// Go to the welcome screen and have them log in or create an account.
[self presentLoginViewController];
}
// end
- (void)presentWallViewControllerAnimated:(BOOL)animated {
PAWWallViewController *wallViewController = [[PAWWallViewController alloc] initWithNibName:nil bundle:nil];
wallViewController.delegate = self;
[self.navigationController setViewControllers:@[ wallViewController ] animated:animated];
}
@atwalsh
Copy link
Author

atwalsh commented Feb 20, 2015

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