1.參考鏈接:http://www.bkjia.com/IOSjc/872299.html
2.參考鏈接:http://kyfxbl.iteye.com/blog/1997502
用Storyboard 來創(chuàng)建Controller之間的跳轉(zhuǎn),但是有時(shí)候,想用代碼來控制跳轉(zhuǎn),如何獲取ViewController,這個(gè)和我們一般創(chuàng)建視圖控制器的方法不一樣.
UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];

9EC25B50-FFF8-439A-AD66-6932BC7FBA34.png
FirstViewController *firstCtrl = [story instantiateViewControllerWithIdentifier:@"firstViewController"];

2.png
[self.navigationController pushViewController:firstCtrl animated:YES];