HPLChatViewController

HPLChatViewController is for making sms like views on iOS. It is a fork of https://github.com/AlexBarinov/UIBubbleTableView.


License
CC-BY-SA-3.0
Install
pod try HPLChatViewController

Documentation

HPLChatViewController

HPLChatViewController is a component for making sms like screens on iOS. It is a fork of https://github.com/AlexBarinov/UIBubbleTableView, which is no longer maintained.

Installation

Cocoapods

pod 'HPLChatViewController', '~> 0.0.3'

Usage

You must implement a view controller that conforms to the HPLChatTableViewDataSource protocol. This requires implementing the following methods:

- (NSInteger) numberOfRowsForChatTable:(HPLChatTableView *)tableView;
- (HPLChatData *)chatTableView:(HPLChatTableView *)tableView dataForRow:(NSInteger)row;

Customization

The following properties are exposed on HPLChatData to allow for visual customization.

/**
 Set a custom avatar view. If nil then the default Not-Found image is used for avatar.
 */
@property (readwrite, nonatomic, strong) UIView *avatarView;

/**
 Set a custom bubble view if you don't want to use the default bubble view style.
 If nil, default style used.
 */
@property (readwrite, nonatomic, strong) UIView *bubbleView;


/**
 Set a status for a message with a custom view to be displayed
 */
- (void)setMessageStatus:(HPLChatMessageStatus)messageStatus withView:(UIView*)statusView;

Contributors

The project was created by Alex Barinov, maintained by

License

This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/. See LICENSE for the complete license.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.