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

storyboard的小知识

时间:2015-09-08 21:36:10      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:

 

 

技术分享

 

 

 

 

View Coontroller在不关联的情况下跳转

//写在button的方法中

//    获得storyBoard当前故事板

            UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];

   //   初始化要跳转的页面

                ViewController2 *advertise = [storyboard instantiateViewControllerWithIdentifier:@"ViewController2"];

    

        [self.navigationController pushViewController:advertise animated:YES];

 

storyboard的小知识

标签:

原文地址:http://www.cnblogs.com/twhbk/p/4792745.html

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