您的位置:首页 > 其它

storyboard与storyboard之间的跳转

2016-04-21 14:09 274 查看
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

[self add_View];
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

/**
*  哈哈
*/
-(void) add_View{

// 从storyboard创建MainViewController
UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"b" bundle:[NSBundle mainBundle]];
_contr = (UIViewController*)[storyboard instantiateViewControllerWithIdentifier:@"mainViewController"];

}
- (IBAction)click_Button:(id)sender {

[self.navigationController pushViewController:self.contr animated:YES];
}


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: