Inherits from UIView
Declared in SCBubbleViewOut.h

Overview

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];

Properties

UI_APPEARANCE_SELECTOR

Base Color of the bubble

@property (nonatomic, strong) UIColor *UI_APPEARANCE_SELECTOR

Declared In

SCBubbleViewOut.h

chatText

Chat Text of the bubble

@property (nonatomic, strong) NSString *chatText

Declared In

SCBubbleViewOut.h

left

@property (nonatomic, weak) IBOutlet NSLayoutConstraint *left

textOffsetTop

Draw the text with offset from top

@property (nonatomic, strong) NSNumber *textOffsetTop

Declared In

SCBubbleViewOut.h

top

@property (nonatomic, weak) IBOutlet NSLayoutConstraint *top

width

@property (nonatomic, weak) IBOutlet NSLayoutConstraint *width

Class Methods

insetForBubbleType:

For internal use.

+ (CGRect)insetForBubbleType:(id)aBubbleType

Declared In

SCBubbleViewOut.h

Instance Methods

textRect

TextRect within the BubbleView

- (CGRect)textRect

Return Value

The text rectangle

Declared In

SCBubbleViewOut.h