您所在的位置:小祥子 » 编程 » IOS » 正文

StoryBoard间切换

时间:2015-08-18 编辑:mangues 来源:Cnblogs

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];
关键词:or