开发者

Switch XIB to View Controller from variable

开发者 https://www.devze.com 2023-03-26 06:42 出处:网络
Im making a framework and I want to go back to a view controller that the publisher sets. Im using this code:

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

精彩评论

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

关注公众号