-
Notifications
You must be signed in to change notification settings - Fork 29
PKUI.CORE.swapView
kerrishotts edited this page Nov 14, 2012
·
1 revision
(part of PKUI.CORE)
Return Type: void
Parameters: theView ( view )
Replaces the currentView
with theView
on the view stack and makes theView
visible. No animation occurs. If both views define the view lifecycle methods, those methods are called.
Example:
PKUI.CORE.showView ( testView1 );
PKUI.CORE.swapView ( testView2 );
// testView2 will the only view on the stack
- Used most often to simulate tabs -- there's no animation when switching the views, so the switch is nearly instantaneous.
- When used in the column view handling mode, the right-most view is popped, and
theView
is pushed in its place.
0.1 Introduced
0.2 Column handling; Docs Valid