0
即时通讯新的目标c。 我有这种方法,我希望它从我的故事板加载一个新的视图,最终。我怎样才能做到这一点?在方法中加载新的视图控制器
- (void)stopAnimatingAndLoadView {
[self.indicator stopAnimating];
// load new view
}
希望你明白我的问题
即时通讯新的目标c。 我有这种方法,我希望它从我的故事板加载一个新的视图,最终。我怎样才能做到这一点?在方法中加载新的视图控制器
- (void)stopAnimatingAndLoadView {
[self.indicator stopAnimating];
// load new view
}
希望你明白我的问题
要加载新的看法,我认为,是一个UIViewController,你已经把它架在故事板。在故事板,如果你给它一个标识符,那么你可以通过调用加载:
MyOtherViewController *myOtherViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"MyOtherViewController"]; // If you are using navigation controller, you can call [self.navigationController pushViewController:myOtherViewController animated:YES]; // If not, you can present it modally [self presentModalViewController:myOtherViewController animated:YES];