Skip to content

PKUI.CORE.popToView

kerrishotts edited this page Nov 14, 2012 · 1 revision

(part of PKUI.CORE)

Return Type: void

Parameters: theView ( view )

If theView is specified, pops all views off the stack until theView is the topmost view on the stack. If theView is not specified, all views but the bottommost will be popped. (Equivalent to a "popToRoot".)

All popped views will have their lifecycle events called, if defined, and will be hidden from the screen.

Example:

PKUI.CORE.popToView ( testView2 );
PKUI.CORE.popToView (); // pops all views but the bottom view on the stack

Version

0.2 Introduced; Docs Valid

Clone this wiki locally