What is the difference beetween calling presentModalViewController
and pushViewController
, when :
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/