Theme Setting
Using UIAppearance
UIAppearance customizations are applied to AcquireIO SDK by default. However if there is a conflicting property, then the value in ThemeOptions
key in AcquireIOConfig
will take precedence.
For example: If the app uses UIAppearance to change the color of Navigation Bar title and also specifies a color for the same property in the AcquireIOConfig ThemeOptions
NSDictionary
, then the value in dictionary will be used. In order to use the UIAppearance value, the app must leave the corresponding entry in the ThemeOptions
blank.
if you don't want to use AcquireIOConfig ThemeOptions
properties to SDK the use init method attribute option to 'UseDefaultTheme
' to @YES
.
Introduction
Head over to Theming if you want to customize your SDK integration's typeface, colors or fonts. It is done via simple key-value pairs in option dictionary.
Configuration
Check this code in [[AcquireIO support] setAccount: withOptions:]; method, where withOptions parameter is an instance of AcquireIOConfig, set options dictionary in AcquireIOConfig using:
Set NSDictionary options in format of key value. Color code will be hex value of color, start from #. You can remove and leave blank for default theme effect. Sample format
Theme Setting
To skin your app, make sure you add AcquireIOConfig @"ThemeOptions"
.
Global Attributes
These attributes control the looks of in-app support over many screens.
Navigation Bar
System Button Attributes
These attributes applies on default bottom right support button.
System Button Badge Attributes
These attributes applies on default bottom right support button notification badge.
Using Custom Fonts
Add the font to your project. Edit your app's plist file and add a key "Fonts provided by application"
to it. Under the key, list out file names of all the fonts you want to use in your app and in support. If you've already listed such fonts, skip this step.
Step 2: Copy the font's full name. To do this, select the font in Finder and hit COMMAND
⌘+I
(Get Info).
Step 3: Paste the font name into AcquireIOConfig @"ThemeOptions" -> @"ACQUIREIO_GLOBAL" ->FONT_NAME
, wherever necessary
Step 4: Test the font and theme in simulator. If font couldn't load by SDK then it will show error —
Orientation support
By default, the iOS SDK will follow the orientation of the app.
Last updated