我有一个根 ViewController 类,并像这样调用 OnlineViewController 的视图:
- (void)eventTap:(UIGestureRecognizer *)gestureRecognizer {
self.evc = [[EventViewController alloc]init];
[self presentViewController:self.evc animated:YES completion:nil];
}
我试图从 OnlineViewController 调用 ViewController 的视图,但它失败了:
-(void ) iconAction{
self.vc = [[ViewController alloc]init];
[self presentViewController:self.vc animated:YES completion:nil];
如何调用 ViewController 的视图?