Titanium.UI.iPhone
> Titanium.UI.iPhone

The iPhone/iPad-specific UI capabilities. All properties, methods and events in this namespace will only work on Apple iOS systems.

This class has been removed since 7.0.0

Use the unified <Titanium.UI.iOS> namespace instead.

  • 0.8
  • 0.8
Defined By

Properties

Titanium.UI.iPhone
MODAL_PRESENTATION_CURRENT_CONTEXT : Numberreadonlyremoved

View presented with the same style as its parent window.

View presented with the same style as its parent window.

This property has been removed

7.0.0 Use <Titanium.UI.iOS.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL> instead.

Requires: iOS 3.2 and later

Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.

One of the group of modal window presentation style constants MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.

Titanium.UI.iPhone
MODAL_PRESENTATION_FORMSHEET : Numberreadonlyremoved

Window width and height are smaller than those of the screen and the view is centered on the screen.

Window width and height are smaller than those of the screen and the view is centered on the screen.

This property has been removed

7.0.0 Use <Titanium.UI.iOS.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL> instead.

Requires: iOS 3.2 and later

If the system is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so that the view remains visible. All uncovered areas are dimmed and do not respond to touch to prevent the user from interacting with them.

Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.

One of the group of modal window presentation style constants MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.

Titanium.UI.iPhone
MODAL_PRESENTATION_FULLSCREEN : Numberreadonlyremoved

Window covers the screen.

Window covers the screen.

This property has been removed

7.0.0 Use <Titanium.UI.iOS.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL> instead.

Requires: iOS 3.2 and later

Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.

One of the group of modal window presentation style constants MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.

Titanium.UI.iPhone
MODAL_PRESENTATION_PAGESHEET : Numberreadonlyremoved

Window height is the height of the screen and width is equal to screen width in a portrait orientation.

Window height is the height of the screen and width is equal to screen width in a portrait orientation.

This property has been removed

7.0.0 Use <Titanium.UI.iOS.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL> instead.

Requires: iOS 3.2 and later

Any uncovered areas are dimmed and do not respond to touch, to prevent the user from interacting with them. In portrait orientations, this option is essentially the same as MODAL_PRESENTATION_FULLSCREEN.

Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.

One of the group of modal window presentation style constants MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.

Titanium.UI.iPhone
: Numberreadonlyremoved
When the window is presented, its view slides up from the bottom of the screen. ...

When the window is presented, its view slides up from the bottom of the screen. On dismissal, the view slides back down (default.)

This property has been removed

7.0.0 Use <Titanium.UI.iOS.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL> instead.

Requires: iOS 3.2 and later

Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.

One of the group of modal window transition style constants MODAL_TRANSITION_STYLE_COVER_VERTICAL, MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, and MODAL_TRANSITION_STYLE_PARTIAL_CURL.

Titanium.UI.iPhone
: Numberreadonlyremoved
When the window is presented, the current view fades out while the new view fades in at the same time. ...

When the window is presented, the current view fades out while the new view fades in at the same time. On dismissal, a similar type of cross-fade is used to return to the original view.

This property has been removed

7.0.0 Use <Titanium.UI.iOS.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL> instead.

Requires: iOS 3.2 and later

Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.

One of the group of modal window transition style constants MODAL_TRANSITION_STYLE_COVER_VERTICAL, MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, and MODAL_TRANSITION_STYLE_PARTIAL_CURL.

Titanium.UI.iPhone
: Numberreadonlyremoved
When the window is presented, the current view initiates a horizontal 3D flip from right-to-left, resulting in the r...

When the window is presented, the current view initiates a horizontal 3D flip from right-to-left, resulting in the revealing of the new view as if it were on the back of the previous view. On dismissal, the flip occurs from left-to-right, returning to the original view.

This property has been removed

7.0.0 Use <Titanium.UI.iOS.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL> instead.

Requires: iOS 3.2 and later

Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.

One of the group of modal window transition style constants MODAL_TRANSITION_STYLE_COVER_VERTICAL, MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, and MODAL_TRANSITION_STYLE_PARTIAL_CURL.

Titanium.UI.iPhone
: Numberreadonlyremoved
When the window is presented, one corner of the current view curls up to reveal the modal view underneath. ...

When the window is presented, one corner of the current view curls up to reveal the modal view underneath. On dismissal, the curled up page unfurls itself back on top of the modal view.

This property has been removed

7.0.0 Use <Titanium.UI.iOS.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL> instead.

Requires: iOS 3.2 and later

A modal view presented using this transition is itself prevented from presenting any additional modal views. This transition style is supported only if the window is presenting a MODAL_PRESENTATION_FULLSCREEN modal presentation style.

Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.

One of the group of modal window transition style constants MODAL_TRANSITION_STYLE_COVER_VERTICAL, MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, and MODAL_TRANSITION_STYLE_PARTIAL_CURL.

apiName : Stringreadonly

The name of the API that this proxy corresponds to.

The name of the API that this proxy corresponds to.

The value of this property is the fully qualified name of the API. For example, Button returns Ti.UI.Button.

  • 3.2.0
  • 3.2.0
  • 3.2.0
Titanium.UI.iPhone
appBadge : Numberremoved

Value of the badge for the application's springboard icon.

Value of the badge for the application's springboard icon.

This property has been removed since 7.0.0

Use <Titanium.UI.iOS.appBadge> instead.

Titanium.UI.iPhone
appSupportsShakeToEdit : Booleanremoved

Determines whether the shake to edit system-wide capability is enabled.

Determines whether the shake to edit system-wide capability is enabled.

This property has been removed since 7.0.0

Use <Titanium.UI.iOS.appSupportsShakeToEdit> instead.

Indicates if the proxy will bubble an event to its parent. ...

Indicates if the proxy will bubble an event to its parent.

Some proxies (most commonly views) have a relationship to other proxies, often established by the add() method. For example, for a button added to a window, a click event on the button would bubble up to the window. Other common parents are table sections to their rows, table views to their sections, and scrollable views to their views. Set this property to false to disable the bubbling to the proxy's parent.

Default: true

  • 3.0.0
  • 3.0.0
  • 3.0.0

The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.

The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.

If this property is set to a Window or TabGroup, then the corresponding Activity lifecycle event callbacks will also be called on the proxy. Proxies that require the activity lifecycle will need this property set to the appropriate containing Window or TabGroup.

  • 3.6.0
Titanium.UI.iPhone
statusBarHidden : Booleanreadonlyremoved

Determines whether the status bar is hidden.

Determines whether the status bar is hidden.

This property has been removed since 6.0.0

Use <Titanium.UI.Window.fullscreen> instead.

The setter for this property does not work on iOS 7 and is deprecated for earlier iOS versions since Release 3.1.3. Use the fullscreen property of the window to control if the staus bar is shown or not.

Titanium.UI.iPhone
statusBarStyle : Numberreadonlyremoved

Determines the status bar color style.

Determines the status bar color style.

This property has been removed since 6.0.0

Use <Titanium.UI.Window.statusBarStyle> instead.

The setter for this property does not work on iOS 7 and is deprecated for earlier iOS versions since Release 3.1.3. Use the statusBarStyle property of the window to control the status bar style.

This API can be assigned the following constants:

Defined By

Methods

Adds the specified callback as an event listener for the named event. ...

Adds the specified callback as an event listener for the named event.

Parameters

  • name : String

    Name of the event.

  • callback : Callback<Object>

    Callback function to invoke when the event is fired.

Returns

  • void
Applies the properties to the proxy. ...

Applies the properties to the proxy.

Properties are supplied as a dictionary. Each key-value pair in the object is applied to the proxy such that myproxy[key] = value.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Parameters

  • props : Dictionary

    A dictionary of properties to apply.

Returns

  • void
Fires a synthesized event to any registered listeners. ...

Fires a synthesized event to any registered listeners.

Parameters

  • name : String

    Name of the event.

  • event : Dictionary

    A dictionary of keys and values to add to the Titanium.Event object sent to the listeners.

Returns

  • void
Gets the value of the apiName property. ...

Gets the value of the apiName property.

  • 3.2.0
  • 3.2.0
  • 3.2.0

Returns

  • String
Titanium.UI.iPhone
( ) : Numberremoved
Gets the value of the appBadge property. ...

Gets the value of the appBadge property.

This method has been removed since 7.0.0

Use <Titanium.UI.iOS.appBadge> instead.

Returns

  • Number
Titanium.UI.iPhone
( ) : Booleanremoved
Gets the value of the appSupportsShakeToEdit property. ...

Gets the value of the appSupportsShakeToEdit property.

This method has been removed since 7.0.0

Use <Titanium.UI.iOS.appSupportsShakeToEdit> instead.

Returns

  • Boolean
Gets the value of the bubbleParent property. ...

Gets the value of the bubbleParent property.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Returns

  • Boolean
Gets the value of the lifecycleContainer property. ...

Gets the value of the lifecycleContainer property.

  • 3.6.0

Returns

Titanium.UI.iPhone
( ) : Booleanremoved
Gets the value of the statusBarHidden property. ...

Gets the value of the statusBarHidden property.

This method has been removed since 6.0.0

Use <Titanium.UI.Window.fullscreen> instead.

Returns

  • Boolean
Titanium.UI.iPhone
( ) : Numberremoved
Gets the value of the statusBarStyle property. ...

Gets the value of the statusBarStyle property.

This method has been removed since 6.0.0

Use <Titanium.UI.Window.statusBarStyle> instead.

Returns

  • Number
Titanium.UI.iPhone
( [params] )removed
Hides the status bar. ...

Hides the status bar.

This method has been removed

3.2.0 This method does not work on iOS 7 and is deprecated on earlier versions. Use the <Titanium.UI.Window.fullscreen> property of the window to control if the staus bar is shown or not.

Parameters

Returns

  • void
Removes the specified callback as an event listener for the named event. ...

Removes the specified callback as an event listener for the named event.

Multiple listeners can be registered for the same event, so the callback parameter is used to determine which listener to remove.

When adding a listener, you must save a reference to the callback function in order to remove the listener later:

var listener = function() { Ti.API.info("Event listener called."); }
window.addEventListener('click', listener);

To remove the listener, pass in a reference to the callback function:

window.removeEventListener('click', listener);

Parameters

  • name : String

    Name of the event.

  • callback : Callback<Object>

    Callback function to remove. Must be the same function passed to addEventListener.

Returns

  • void
Titanium.UI.iPhone
( appBadge )removed
Sets the value of the appBadge property. ...

Sets the value of the appBadge property.

This method has been removed since 7.0.0

Use <Titanium.UI.iOS.appBadge> instead.

Parameters

  • appBadge : Number

    New value for the property.

Returns

  • void
Titanium.UI.iPhone
( appSupportsShakeToEdit )removed
Sets the value of the appSupportsShakeToEdit property. ...

Sets the value of the appSupportsShakeToEdit property.

This method has been removed since 7.0.0

Use <Titanium.UI.iOS.appSupportsShakeToEdit> instead.

Parameters

  • appSupportsShakeToEdit : Boolean

    New value for the property.

Returns

  • void
Sets the value of the bubbleParent property. ...

Sets the value of the bubbleParent property.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Parameters

  • bubbleParent : Boolean

    New value for the property.

Returns

  • void
Sets the value of the lifecycleContainer property. ...

Sets the value of the lifecycleContainer property.

  • 3.6.0

Parameters

Returns

  • void
Titanium.UI.iPhone
( [params] )removed
Shows the status bar. ...

Shows the status bar.

This method has been removed

3.2.0 This method does not work on iOS 7 and is deprecated on earlier versions. Use the <Titanium.UI.Window.fullscreen> property of the window to control if the staus bar is shown or not.

Parameters

Returns

  • void