获取到storybord里面创建的页面
2016-11-29 本文已影响14人
CarrieQ
//获取storyboard: 通过bundle根据storyboard的名字来获取我们的storyboard,
UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
//由storyboard根据myView的storyBoardID来获取我们要的视图
UIViewController *myView = [story instantiateViewControllerWithIdentifier:@"myView"];