开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜