Based on some readings, there seems to be three levels of UIWindow
UIWindowLevelNormal
UIWindowLevelStatusBar
UIWindowLevelAlert
Just as a cool note, the UIWindow are just another UIViews and their order of display is controlled by the windowLevel property.
To test out these concepts, created a sample application. which is available at this link. In the application, it does the below
- A button that shows an alert
- A button that shows up an action sheet
- A text filed that can show up a text keypad and the copy/select all control options
- A button that can resign the text field as first responder.
The application prints the current level of windows in a timer and for each window, it prints the below items
- Window object
-Window level
- Window whether it is key window
Below table gives an idea of the number of windows iOS framework places
References:
No comments:
Post a Comment