ios - Don't Understand the concept of the pushViewController -
can explain me concept of pushing , popping stack items in uinavigationcontroller
.i know meaning of push
, pop
used in stack opreation in data structure don't know how work in uinavigationcontroller
.please explain the following functions of it.
pushviewcontroller:animated: - popviewcontrolleranimated: - poptorootviewcontrolleranimated: - poptoviewcontroller:animated: interactivepopgesturerecognizer
thanks.
its same concept stack in data structure really, except can view whats on top (ie top viewcontroller in navigation stack)
so pushing viewcontroller means going on top of stack (animates coming in right) popping viewcontroller take viewcontroller off top (which current 1 looking at) animate off right of screen, showing viewcontroller underneath top one
poptorootviewcontroller
popping until hit last viewcontroller in navigation stack
poptoviewcontroller
pops until particular viewcontroller on top
hope thats clarification need
Comments
Post a Comment