你的位置:首页 > 操作系统

[操作系统]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];