Skip to content

Instantly share code, notes, and snippets.

@zorn
Created December 16, 2013 02:31
Show Gist options
  • Save zorn/7981551 to your computer and use it in GitHub Desktop.
Save zorn/7981551 to your computer and use it in GitHub Desktop.
Doesn't animate. Is there a known issue mixing `instantiateViewControllerWithIdentifier` with `presentViewController`? Seeing similar behavior in another app.
- (void)presentAccountChooser
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UINavigationController *navVC = [storyboard instantiateViewControllerWithIdentifier:@"AccountChooserViewControllerNavVC"];
AccountChooserViewController *accountChooserVC = (AccountChooserViewController *)[navVC topViewController];
accountChooserVC.accounts = [self.twitterStore systemTwitterAccounts];
accountChooserVC.delegate = self;
NSLog(@"modalTransitionStyle %d", self.modalTransitionStyle);
navVC.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
navVC.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:navVC animated:YES completion:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment