Inherits from NSObject
Declared in JSBubbleImageViewFactory.h

Overview

JSBubbleImageViewFactory is a factory that provides a means for styling bubble image views to be displayed in a JSBubbleMessageCell of a JSMessagesViewController.

Tasks

  • + bubbleImageViewForType:color:

    Creates and returns an image view object with the specified type and color. The image property of the image view is configured with a flat, iOS7-style bubble image, masked with the given color. The highlightedImage property is configured similarly, but with a slightly darkened version of the given color.

  • + classicBubbleImageViewForType:style:

    Creates and returns an image view object with the specified type and style. The image property of the image view is configured with a glossy, iOS6-style bubble image, corresponding to the given style. The highlightedImage property is configured similarly, but with a selected version of the bubble image.

Class Methods

bubbleImageViewForType:color:

+ (UIImageView *)bubbleImageViewForType:(JSBubbleMessageType)type color:(UIColor *)color
Discussion

Creates and returns an image view object with the specified type and color. The image property of the image view is configured with a flat, iOS7-style bubble image, masked with the given color. The highlightedImage property is configured similarly, but with a slightly darkened version of the given color.

Parameters

type

The type of the bubble image view.

color

The color of the bubble image in the image view.

Return Value

An initialized image view object if created successfully, nil otherwise.

Declared In

JSBubbleImageViewFactory.h

classicBubbleImageViewForType:style:

+ (UIImageView *)classicBubbleImageViewForType:(JSBubbleMessageType)type style:(JSBubbleImageViewStyle)style
Discussion

Creates and returns an image view object with the specified type and style. The image property of the image view is configured with a glossy, iOS6-style bubble image, corresponding to the given style. The highlightedImage property is configured similarly, but with a selected version of the bubble image.

Parameters

type

The type of the bubble image view.

style

The style of the bubble image in the image view.

Return Value

An initialized image view object if created successfully, nil otherwise.

Declared In

JSBubbleImageViewFactory.h