dismissViewControllerAnimated VS popViewControllerAnimated

后端 未结 2 1660
长发绾君心
长发绾君心 2020-12-13 13:49

I want to know what is the different of them. when I can call

[self dismissViewControllerAnimated:YES completion:nil];

and when I should c

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 14:05

    your selected application is navigation based application means

    [self.navigationController popViewControllerAnimated:YES];
    

    your selected application is other than the navigation based application means

    [self dismissViewControllerAnimated:YES completion:nil];
    

提交回复
热议问题