ContentBlock Cell Appereance - xamoom/xamoom-ios-sdk GitHub Wiki
When using our SDK, it is also possible to customize the ContentBlockCells without creating a new one. If you only want to change some colors and not changing the whole UI you can set this colors for your own. This colors are implemented as UI_APPEARANCE_SELECTOR and can be overwritten in the AppDelegate.
Usage
You can customize the SDK´s AudioBlock, LinkBlock, Ebook, DownloadBlock and MapDetailView. For this implement following code to AppDelegate´s didFinishLaunchingWithOptions function.
let backgroundColor = UIColor.black
let tintColor = UIColor.white
//AudioBlock
XMMContentBlock1TableViewCell.appearance().audioPlayerBackgroundColor = backgroundColor
XMMContentBlock1TableViewCell.appearance().audioPlayerTintColor = tintColor
//LinkBlock
XMMContentBlock4TableViewCell.appearance().facebookColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().facebookTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().fallbackColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().fallbackTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().webColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().webTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().mailColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().mailTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().wikipediaColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().wikipediaTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().itunesColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().itunesTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().appleColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().appleTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().twitterColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().twitterTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().shopColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().shopTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().linkedInColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().linkedInTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().flickrColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().flickrTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().soundcloudColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().soundcloudTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().youtubeColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().youtubeTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().googleColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().googleTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().spotifyColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().spotifyTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().navigationColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().navigationTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().androidColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().androidTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().windowsColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().windowsTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().instagramColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().instagramTintColor = tintColor
XMMContentBlock4TableViewCell.appearance().phoneColor = backgroundColor
XMMContentBlock4TableViewCell.appearance().phoneTintColor = tintColor
//Ebook
XMMContentBlock5TableViewCell.appearance().ebookColor = backgroundColor
XMMContentBlock5TableViewCell.appearance().ebookTintColor = tintColor
//DownloadBlock
XMMContentBlock8TableViewCell.appearance().calendarColor = backgroundColor
XMMContentBlock8TableViewCell.appearance().calendarTintColor = tintColor
XMMContentBlock8TableViewCell.appearance().contactColor = backgroundColor
XMMContentBlock8TableViewCell.appearance().contactTintColor = tintColor
XMMContentBlock8TableViewCell.appearance().gpxColor = backgroundColor
XMMContentBlock8TableViewCell.appearance().gpxTintColor = tintColor
//MapDetailView
XMMMapOverlayView.appearance().buttonBackgroundColor = backgroundColor
XMMMapOverlayView.appearance().buttonTextColor = tintColor
// Time & Location
XMMContentBlockEventTableViewCell.appearance().calendarColor = backgroundColor
XMMContentBlockEventTableViewCell.appearance().calendarTintColor = tintColor
XMMContentBlockEventTableViewCell.appearance().navigationColor = backgroundColor
XMMContentBlockEventTableViewCell.appearance().navigationTintColor = tintColor