ios推出和关闭控制器

方法一:push-pop

推出:

test1VC *vc1 = [self.storyboard instantiateViewControllerWithIdentifier:@"test1VC"];
    
[self.navigationController pushViewController:vc1 animated:YES];

关闭:

  [self.navigationController popViewControllerAnimated:YES];

方法二:present-dismiss

推出:

 [self presentViewController:self.pickController animated:YES completion:nil];

关闭:

[self dismissViewControllerAnimated:YES completion:nil];
已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页