Skip to content
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

Notes

  • 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.

Version

0.1 Introduced

0.2 Column handling; Docs Valid

Clone this wiki locally