Created
December 16, 2013 02:31
-
-
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.
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)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