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];
posted @ 2015-08-18 16:56  mangues  阅读(283)  评论(0编辑  收藏  举报