Decorate iOS UI elements
This section describes the presentation style attributes that are supported for iOS devices.
Foreground colors
In order to define the foreground color for items used in the iOS navigation bar, toolbar, and
some items in the forms (Buttons, SpinEdit, Radiogroups, and row checkmark and disclosure indicators
in list views), the
iosTintColor
style attribute can be used at Window
level:<StyleList>
<Style name="Window">
<StyleAttribute name="iosTintColor" value="white" />
</Style>
</StyleList>
Background colors
Background color of iOS specific elements can be defined with the following style attributes at
the Window level:
iosTabBarTintColor
iosToolbarTintColor
iosNavigationBarTintColor
For
example:
<StyleList>
<Style name="Window">
<StyleAttribute name="iosTintColor" value="white" />
<StyleAttribute name="iosNavigationBarTintColor" value="blue" />
<StyleAttribute name="iosToolBarTintColor" value="blue" />
</Style>
/StyleList>
iosTintColor inheritence
The iosTintColor
style attribute can be used at Window level to defined the text
color for Tabbar and Toolbar elements.
However, when defining the text color at Window level, it has an impact on the form elements such
as Folder, Button, SpinEdit and RadioGroup too. For example, if you set
iosTintColor
to white at the window level, Folder, Button, SpinEdit and RadioGroup
element will appear as if they were hidden.
To avoid this, set another text color at the Form element level, as shown in the next
.4st style file:
<StyleList>
<Style name="Window">
<StyleAttribute name="iosTintColor" value="white" />
<StyleAttribute name="iosNavigationBarTintColor" value="blue" />
<StyleAttribute name="iosToolBarTintColor" value="blue" />
</Style>
<Style name="Form">
<StyleAttribute name="iosTintColor" value="blue" />
</Style>
</StyleList>
Important: Note that in the above example, the
iosToolBarTintColor
and
iosNavigationBarTintColor
define respectively the background color for the
iOS navigation bar and the iOS toolbar.For a complete description of these attributes, see Style attributes reference.