我想知道他们有什么不同。 当我可以调用dismissViewControllerAnimated VS popViewControllerAnimated
[self dismissViewControllerAnimated:YES completion:nil];
,当我应该调用
[self.navigationController popViewControllerAnimated:YES];
根据苹果的文件: dismissViewControllerAnimated装置 “驳回这是由接收器呈现的视图控制器”。 但我总是无法通过这种方法解雇视图控制器。
至于解雇请参阅斯坦福的[this](https://youtu.be/oTsg-uJfxD4?t=556)视频。应始终将dismissViewController发送到* present * viewController。如果你发送给它的*呈现* viewController和presentViewcontroller没有提出**一个** nother viewController *然后*它会解雇它适当,否则它不会这样做的权利 – Honey