SCBubbleViewOut Class Reference
This class renders the bubble for an outbound message in the SCBoardController.
The bubble appearance can be influenced by iOS Appearance API. The current appearance options are influencing the blubble shape and the color.
Currently the following bubble shapes are supported:
- SC_BUBBLE_OUT_DEFAULT : Standard bubble similar to the bubble shape used by Facebook iOS app - SC_BUBBLE_OUT_HANGOUT : Bubble Shape similar to Google Hangout iOS App - SC_BUBBLE_OUT_WHAZZUPP : Bubble Shape similar to a popular messenger - SC_BUBBLE_OUT_IOS7 : iOS7 style bubble
In order to set the base color or the bubble style, you can use UIAppearance API as follows:
// Just do this once in your applicationDidFinishLaunching:withOptions: [[SCBubbleViewOut appearance] setBaseColor:[UIColor colorWithRed: 1 green: 0 blue: 0.434 alpha: 0.69]]; [[SCBubbleViewOut appearance] setBubbleTypeOut:SC_BUBBLE_OUT_IOS7];
Base Color of the bubble
@property (nonatomic, strong) UIColor *UI_APPEARANCE_SELECTOR
Chat Text of the bubble
@property (nonatomic, strong) NSString *chatText
Draw the text with offset from top
@property (nonatomic, strong) NSNumber *textOffsetTop