What is the difference beetween calling presentModalViewController
and pushViewController
, when :
This is what my experience says,if you want to manage a hierarchy of views,better go for pushViewController in the navigation controller. It works like a stack of view-controllers in the navigation controller. If however the requirement is just to show a view on executing some actions on the parent view controller then the best way is presenting it modally. If you need a complex push pop logic always prefer a pushViewController.