NKModalWindow
Overview
This class is used to present modal dialogs and "wait screens" when user should not access any other controls except those placed on modal window
show()
shows modal window on top of all controls
dismiss()
removes modal window from the screen
addControl(control)
adds control to the modal window, can take value of standard NimbleKit controls, like NKActivityIndicator, NKButton, NKLabel, etc
Example:
modal = new NKModalWindow();
modal.show();
var indicator = new NKActivityIndicator();
indicator.init(90, 165, 30, "white");
indicator.show();
indicator.spin();
modal.addControl(indicator);
var label = new NKLabel();
label.init(140, 158, 140, 40, "Please wait...");
modal.addControl(label);
label.show();
var button = new NKButton();
button.init(120, 210, 100, 40, "buttonClick");
button.setTitle("Dismiss");
modal.addControl(button);
button.show();
// This example shows modal window with 3 controls on it

