Created
April 2, 2014 17:13
-
-
Save justincbeck/9938588 to your computer and use it in GitHub Desktop.
Presenting Modal VC
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
_assessmentListViewController = [[PMAssessmentListViewController alloc] initWithNibName:@"PMAssessmentListViewController" bundle:[NSBundle mainBundle]]; | |
[_assessmentListViewController setStudent:student]; | |
[_assessmentListViewController setAssessment:[[student classroom] assessment]]; | |
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:_assessmentListViewController]; | |
[navController setDelegate:self]; | |
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:@"done" style:UIBarButtonItemStylePlain target:self action:@selector(dismissTaskList:)]; | |
[[_assessmentListViewController navigationItem] setLeftBarButtonItem:doneButton]; | |
[self presentViewController:navController animated:YES completion:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment