首页 > 学院 > 开发设计 > 正文

StoryBoard间切换

2019-11-14 18:30:18
字体:
来源:转载
供稿:网友

swift:
 
            var oneStoreboard:UIStoryboard = UIStoryboard(name: "view", bundle: NSBundle.mainBundle());
            let viewController:UIViewController = oneStoreboard.instantiateViewControllerWithIdentifier("viewStore") as! UIViewController
            self.navigationController?.pushViewController(viewController, animated: true)
 
 
oc:
    UIStoryboard *secondStoryboard = [UIStoryboard storyboardWithName:@"view" bundle:nil];
    UIViewController *firstVC = [secondStoryboard instantiateViewControllerWithIdentifier:@"viewStore"];
    [self.navigationController pushViewController:firstVC animated:YES];

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表