获取到storybord里面创建的页面


//获取storyboard: 通过bundle根据storyboard的名字来获取我们的storyboard,

UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];

//由storyboard根据myView的storyBoardID来获取我们要的视图

UIViewController *myView = [story instantiateViewControllerWithIdentifier:@"myView"];

你可能感兴趣的:(获取到storybord里面创建的页面)