iOS - pushViewController vs presentModalViewController difference

前端 未结 5 816
南旧
南旧 2021-02-01 17:17

What is the difference beetween calling presentModalViewController and pushViewController, when :

  • animation is set to NO (even if yes, th
5条回答
  •  抹茶落季
    2021-02-01 18:16

    UINavigationController are used when you want to have some sort of hierarchal representation of your data (ie drill down). They work using a stack of UIViewController subclasses. Every time you “drill down”, you simply add another view controller to the stack. Then, the “back” logic is simply a matter of popping view controllers off of a stack.

    You can check out this link: http://www.icodeblog.com/2011/10/11/back-to-basics-an-introduction-to-view-controllers/

提交回复
热议问题