tags:

views:

34

answers:

1

I'd like to know if there's any difference between pushing and poping a UIViewController.

Thanks,

EGB

+1  A: 

They do opposite things.

You push to add it to the stack of visible UIViewControllers, and pop it to remove it.

The terminology comes from the stack data-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.

Chris Cooper