Switch XIB to View Controller from variable
Im making a framework and I want to go back to a view controller that the publisher sets. Im using this code:
BV_APIViewControllerler *newView = [[BV_APIViewController alloc] initWithNibName:nil bundle:nil];
newView.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:newView animated:YES];
[newView release]开发者_运维知识库;
But I want to switch to a view controller they save to NSUserDefaults
What's the problem ? Juste read the name of the nib name stored in the defaults, and use it. The XIB file must reference BV_APIViewController as file's owner.
精彩评论