设为首页 加入收藏

TOP

笔记:载入viewcontroller的几种方式
2019-08-26 07:04:39 】 浏览:25
Tags:笔记 载入 viewcontroller 方式
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"IDENTIFIER"];
[self.navigationController pushViewController:vc animated:YES];


UIViewController *vc = [[UIViewController alloc] initWithNibName:@"NIBNAME" bundle:nil];
[self.navigationController pushViewController:vc animated:YES];

UIViewController *vc = [[UIViewController alloc] init]; [self.navigationController pushViewController:vc animated:YES];
 

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇iOS----------has copy command f.. 下一篇pod command

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目