Inherits from UIView
Declared in SCBubbleViewIn.h

Overview

This class renders the bubble for an inbound 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_IN_DEFAULT : Standard bubble similar to the bubble shape used by Facebook iOS app
- SC_BUBBLE_IN_HANGOUT : Bubble Shape similar to Google Hangout iOS App
- SC_BUBBLE_IN_WHAZZUPP : Bubble Shape similar to a popular messenger
- SC_BUBBLE_IN_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:
[[SCBubbleViewIn appearance] setBaseColor:[UIColor colorWithRed: 1 green: 0 blue: 0.434 alpha: 0.69]];
[[SCBubbleViewIn appearance] setBubbleTypeIn:SC_BUBBLE_IN_IOS7];

Properties

UI_APPEARANCE_SELECTOR

Base Color of the bubble

@property (nonatomic, strong) UIColor *UI_APPEARANCE_SELECTOR

Declared In

SCBubbleViewIn.h

chatText

Chat Text of the bubble

@property (nonatomic, strong) NSString *chatText

Declared In

SCBubbleViewIn.h

left

@property (nonatomic, weak) IBOutlet NSLayoutConstraint *left

textOffsetTop

Draw the text with offset from top

@property (nonatomic, strong) NSNumber *textOffsetTop

Declared In

SCBubbleViewIn.h

top

@property (nonatomic, weak) IBOutlet NSLayoutConstraint *top

width

@property (nonatomic, weak) IBOutlet NSLayoutConstraint *width

Class Methods

insetForBubbleType:

+ (CGRect)insetForBubbleType:(id)aBubbleType

Instance Methods

textRect

TextRect within the BubbleView

- (CGRect)textRect

Return Value

The text rectangle

Declared In

SCBubbleViewIn.h