有一个root的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的视图?