首页 > 其他 > 详细

storyboard的小知识

时间:2015-09-08 21:35:38      阅读:206      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!