您的位置:首页 > 其它

获取Storyboard里面的单独控制器

2016-06-24 10:37 330 查看
第一步:要获取单独控制器所在的UIStoryboard
UIStoryboard *story = [UIStoryboard
storyboardWithName:@"Main"
bundle:nil];
第二步:获取该控制器的Identifier并赋给你的单独控制器
  YYJumpToShareViewController *vc = [story
instantiateViewControllerWithIdentifier:@"JumpToShareVC"];
    [self.navigationController
pushViewController:vc animated:YES];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: