Skip to content

Foriger/HPLChatViewController

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sample fork of HPLChatViewController

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 98.1%
  • Ruby 1.9%