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