How to use storyboard to jump?_移动开发_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > 移动开发 > How to use storyboard to jump?

How to use storyboard to jump?

 2014/11/5 16:17:15  GarveyCalvin  程序员俱乐部  我要评论(0)
  • 摘要:Howtousestoryboard?Betweenthecontrollerandthecontrller.Wecanuseittojum.Youcanuseitforonlineoperationsandusecode.howtousecodetojum?UIStoryboard*storyboard=[UIStoryboardstoryboardWithName:@"yourStroyboardName"bundle:nil]
  • 标签:

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... ...

  • 相关文章
发表评论
用户名: 匿名