您的位置:首页 > 其它

从storyboard加载视图控制器

2015-05-22 00:00 337 查看
storyboardWithName:@"MainStoryboard" bundle:nil];

ViewController *Controller = [mainStoryboard instantiateViewControllerWithIdentifier:@"ViewController"];

MainStoryboard是故事板的文件名。ViewController是你的视图控制类在故事板你面的标示,他和你的ViewController 是绑定的,我这边名字一样。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: