TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2017 |
Maintained by zhuozhuo.
ZHChat is a free open source chat UI components, support for sending voice, pictures, words, expressions, location, video messages. ZHChat can help developers to quickly integrate IM service, easy chat, provides totally free licensing agreement, support for secondary development. Welcome to pull Request.
Thanks Gargo translation.
Easy integrated chat feature.
pod 'ZHChat'
Getting started guide for ZHChat
#import <ZHChat/ZHCMessages.h> // import all the things
** Demo Project**
Customizing
The demo project is well-commented. Please use this as a guide.
View Controller
Subclass ZHCMessagesViewController
.
Implement the required methods in the ZHCMessagesTableViewDataSource
protocol.
Implement the required methods in the ZHCMessagesTableViewDelegate
protocol.
Implement the required methods in the ZHCMessagesMoreViewDelegate
protocol.
Implement the required methods in the ZHCMessagesMoreViewDataSource
protocol.
Implement the required methods in the ZHCEmojiViewDelegate
protocol.
Implement the required methods in the ZHCMessagesInputToolbarDelegate
protocol.
Set your senderId
and senderDisplayName
. These properties correspond to the methods found in ZHCMessageData
and determine which messages are incoming or outgoing.
Avatar Model
ZHCMessageBubbleImageDataSource
protocol.ZHCMessagesAvatarImage
class.ZHCMessagesAvatarImageFactory
for easily generating custom avatars.Message Bubble Model
ZHCMessageAvatarImageDataSource
protocol.ZHCMessagesAvatarImage
class.ZHCMessagesBubbleImageFactory
and UIImage+ZHCMessages
for easily generating custom bubbles.Message Model
ZHCMessageData
protocol.ZHCMessage
class.Media Attachment Model
ZHCMessageMediaData
protocol.ZHCAudioMediaItem
, ZHCLocationMediaItem
, ZHCPhotoMediaItem
.ZHCMessagesMediaPlaceholderView
for masking your custom media views as message bubbles.More Module
ZHCMessagesMoreView
.ZHCMessagesMoreViewDelegate
protocol.ZHCMessagesMoreViewDataSource
protocol.Audio Module
ZHCMessagesVoiceRecorder
,ZHCMessagesAudioProgressHUD
.ZHCMessagesAudioProgressHUD
is a recording voice animation view.ZHCMessagesVoiceRecorder
is recorder. It implement the required methods in the ZHCMessagesVoiceDelegate
protocol.Emoji Module
ZHCMessagesEmojiView
.ZHCEmojiViewDelegate
protocol.ZHCEmojiList.plist
.Thaks Jesse Squires Structures and resources drawn on JSQMessagesViewController.
This code is distributed under the terms and conditions of the MIT license.