码迷,mamicode.com
首页 > 其他好文 > 详细

How to use storyboard to jump?

时间:2014-11-05 16:50:34      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   color   ar   for   sp   div   on   

How to use storyboard?

Between the controller and the contrller. We can use it to jum. You can use it for online operations and use code.

how to use code to jum?

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"yourStroyboardName" bundle:nil];
// Instantiates and returns the view controller with the specified identifier
UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"storyboardId"];
[self.navigationController pushViewController:viewController animated:YES];

 

On the way to access the controller. We can also use the following methods.

// return the initial view controller in the storyboard
UIViewController *viewController = [storyboard instantiateInitialViewController];

 

to be continues... ...

How to use storyboard to jump?

标签:style   blog   io   color   ar   for   sp   div   on   

原文地址:http://www.cnblogs.com/GarveyCalvin/p/4076257.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!