爱程序网

StoryBoard间切换

来源: 阅读:

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];

关于爱程序网 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助