I’d like to know if there’s any difference between pushing and poping a UIViewController.
I’d like to know if there’s any difference between pushing and poping a UIViewController.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They do opposite things.
You
pushto add it to the stack of visibleUIViewControllers, andpopit to remove it.The terminology comes from the
stackdata-structure. The idea is that you “push”, or place, objects on the top of the stack, and each object can’t be removed until all the objects above it have been removed (“popped”).You can read more about stacks here.