iOS Reference Library Apple Developer
Search

UIAApplication Class Reference

Overview

The UIAApplication class allows access to and control of application-level user interface elements.

Tasks

Working With Application-level Elements

Methods

actionSheet

Returns a UIAActionSheet object representing an action sheet, if one is present.

(UIAActionSheet) actionSheet()

alert

Returns a UIAAlert object representing an alert, if one is present.

(UIAAlert) alert()

bundleID

Returns a string containing the application’s bundle ID in reverse-DNS format.

(String) bundleID()

editingMenu

Returns the UIAEditingMenu object representing the application’s edit menu, if it exists.

(UIAEditingMenu) editingMenu()

interfaceOrientation

Returns the interface orientation.

(Number) interfaceOrientation()

Discussion

Interface orientation represents the rotation required to keep the interface right-side up upon device rotation. Note that in landscape mode, device orientation and interface orientation are opposite, because rotating the device requires rotating the content in the opposite direction.

keyboard

Returns the UIAKeyboard object representing the application’s keyboard, if it exists.

(UIAKeyboard) keyboard()

mainWindow

Returns the UIAWindow object representing the application’s main window.

(UIAWindow) mainWindow()

navigationBar

Returns the UIANavigationBar object representing the application’s navigation bar, if it exists.

(UIANavigationBar) navigationBar())

preferenceValueForKey

Gets the value of a specified application user preference.

(NotTyped) preferenceValueForKey(key)

Parameters
key

The key representing the preference to be set.

setPreferenceValueForKey

Sets the value of a specified application user preference.

(undefined) setPreferenceValueForKey(NotTyped value, String key)

Parameters
value

The new value to set for the specified preference.

key

The key representing the preference to be set.

statusBar

Returns the UIAStatusBar object representing the application’s status bar, if it exists.

(UIAStatusBar) statusBar()

tabBar

Returns the UIATabBar object representing the application’s tab bar, if it exists.

(UIATabBar) tabBar()

toolbar

Returns the UIAToolbar object representing the application’s toolbar, if it exists.

(UIAToolbar) toolbar()

version

Returns a string representing the build version number of the application.

(String) version()

Discussion

The build version is represented by a string comprising three period-separated integers.

windows

Returns a UIAElementArray object of UIAWindow objects.

(UIAElementArray) windows()




Last updated: 2010-05-27

Did this document help you? Yes It's good, but... Not helpful...