UAMessageCenterStyle

Objective-C

@interface UAMessageCenterStyle : NSObject

Swift

class UAMessageCenterStyle : NSObject

Model object representing a custom style to be applied to the default message center.

Note: the customizations exposed in this class are “a la carte”. Unless otherwise noted, unspecified properties will be overridden by the default message center at display time.

Default Message Center Style Properties

  • The font to use for the message center title.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIFont *titleFont;

    Swift

    var titleFont: UIFont! { get set }
  • The color of the message center title.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *titleColor;

    Swift

    var titleColor: UIColor! { get set }
  • The tint color to be applied to the message center.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *tintColor;

    Swift

    var tintColor: UIColor! { get set }
  • The background color of the navigation bar, if applicable.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *navigationBarColor;

    Swift

    var navigationBarColor: UIColor! { get set }
  • Whether the navigation bar should be translucent.

    Declaration

    Objective-C

    @property (nonatomic) BOOL navigationBarOpaque;

    Swift

    var navigationBarOpaque: Bool { get set }
  • The navigation bar style. Note: default for default Bar style, black for black bar style.

    Declaration

    Objective-C

    @property (nonatomic) UANavigationBarStyle navigationBarStyle;

    Swift

    var navigationBarStyle: UANavigationBarStyle { get set }
  • The background color of the message list.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *listColor;

    Swift

    var listColor: UIColor! { get set }
  • The tint color of the “pull to refresh” control

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *refreshTintColor;

    Swift

    var refreshTintColor: UIColor! { get set }
  • Whether icons are enabled. Defaults to NO.

    Declaration

    Objective-C

    @property (nonatomic) BOOL iconsEnabled;

    Swift

    var iconsEnabled: Bool { get set }
  • An optional placeholder image to use when icons haven’t fully loaded.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIImage *placeholderIcon;

    Swift

    var placeholderIcon: UIImage! { get set }
  • The font to use for message cell titles.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIFont *cellTitleFont;

    Swift

    var cellTitleFont: UIFont! { get set }
  • The font to use for message cell dates.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIFont *cellDateFont;

    Swift

    var cellDateFont: UIFont! { get set }
  • The regular color for message cells

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cellColor;

    Swift

    var cellColor: UIColor! { get set }
  • The highlighted color for message cells.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cellHighlightedColor;

    Swift

    var cellHighlightedColor: UIColor! { get set }
  • The regular color for message cell titles.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cellTitleColor;

    Swift

    var cellTitleColor: UIColor! { get set }
  • The highlighted color for message cell titles.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cellTitleHighlightedColor;

    Swift

    var cellTitleHighlightedColor: UIColor! { get set }
  • The regular color for message cell dates.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cellDateColor;

    Swift

    var cellDateColor: UIColor! { get set }
  • The highlighted color for message cell dates.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cellDateHighlightedColor;

    Swift

    var cellDateHighlightedColor: UIColor! { get set }
  • The message cell separator color.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cellSeparatorColor;

    Swift

    var cellSeparatorColor: UIColor! { get set }
  • The message cell separator inset.

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets cellSeparatorInset;

    Swift

    var cellSeparatorInset: UIEdgeInsets { get set }
  • The message cell separator style.

    Declaration

    Objective-C

    @property (nonatomic) UITableViewCellSeparatorStyle cellSeparatorStyle;

    Swift

    var cellSeparatorStyle: UITableViewCell.SeparatorStyle { get set }
  • The message cell tint color.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cellTintColor;

    Swift

    var cellTintColor: UIColor! { get set }
  • The background color for the unread indicator.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *unreadIndicatorColor;

    Swift

    var unreadIndicatorColor: UIColor! { get set }
  • The title color for the “Select All” button.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *selectAllButtonTitleColor;

    Swift

    var selectAllButtonTitleColor: UIColor! { get set }
  • The title color for the “Delete” button.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *deleteButtonTitleColor;

    Swift

    var deleteButtonTitleColor: UIColor! { get set }
  • The title color for the “Mark Read” button.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *markAsReadButtonTitleColor;

    Swift

    var markAsReadButtonTitleColor: UIColor! { get set }
  • The title color for the “Edit” button.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *editButtonTitleColor;

    Swift

    var editButtonTitleColor: UIColor! { get set }
  • The title color for the “Cancel” button.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *cancelButtonTitleColor;

    Swift

    var cancelButtonTitleColor: UIColor! { get set }

Default Message Center Style Factories

  • Factory method to create a UAMessageCenterStyle.

    Declaration

    Objective-C

    + (instancetype)style;
  • Factory method to create UAMessageCenterStyle from a provided plist.

    Declaration

    Objective-C

    + (instancetype)styleWithContentsOfFile:(NSString *)path;

    Swift

    convenience init!(contentsOfFile path: String!)