• Stars
    star
    1,901
  • Rank 24,411 (Top 0.5 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cocoa UI component for group or private chat bubbles with text, images and audio support

UUChatTableView

Cocoa UI component for chat bubbles with text, images and audio support

GIF 动画演示

截图 - ScreenShot

wx20170601-170002 2x wx20170601-170002 2x wx20170601-170002 2x

群聊(GroupChat)效果图(新添UI细节)

使用类介绍 - Introduce

类名 作用及用法
UUMessage 内容数据Model,储存文字、语音、头像、图片、时间等等
UUMessageFrame cell的model,设置气泡聊天的布局
UUMessageCell 呈现UI,并做cell的事件处理(语音、图片、头像点击)
UUMessageContentButton 气泡内容的封装及copy功能
UUInputFunctionView tableView底部的视图,相当于ToolBar
UUImageAvatarBrowser 放大图片功能,其实这是障眼法详细查看
UUAVAudioPlayer 语音功能封装,实现本地和线上URL播放,缺点是还没有做像SDWebImage那样的本地缓存
UUProgressHUD Window层上得HUD,功能简易
第三方库 说明
MJRefresh 下拉加载更多聊天记录
AFNetworking 仅使用UIKit+AFNetworking,类似 SDWebImage
VoiceLib 忘记了来自哪里的,找半天没有找到。语音录入及格式转化成MP3

使用方法 - Usage

声明一下| ----- | ----- 当前的数据是在固定模式下随机模拟的,不包含用户输入的所有可能性| 有不习惯Xib编程的有问题可以问我,以前我因为不会而不想去改变 | 我还没有去试iOS6下得适配,要是你测试过油问题可以修改提交或者告诉我 | 有人提到群聊功能,只需要在getDic方法添加其他人信息即可点击查看| 感谢丁南修复语音播放及其他的一些bug|

添加代理

UUInputFunctionViewDelegate

// 返回文字内容
- (void)UUInputFunctionView:(UUInputFunctionView *)funcView sendMessage:(NSString *)message;
// 返回图片数据
- (void)UUInputFunctionView:(UUInputFunctionView *)funcView sendPicture:(UIImage *)image;
// 返回语音数据和录音时长
- (void)UUInputFunctionView:(UUInputFunctionView *)funcView sendVoice:(NSData *)voice time:(NSInteger)second;

UUMessageCellDelegate

//cell的头像点击
- (void)headImageDidClick:(UUMessageCell *)cell userId:(NSString *)userId;
//图片点击可有可无
- (void)cellContentDidClick:(UUMessageCell *)cell image:(UIImage *)contentImage;

Swift版

Code版

StoryBoard版

Swift2.0版将完全使用autolayout(storyboard或code)。

More Repositories

1

XYChart

XYChart is designed for line & bar of charts which can compare mutiple datas in form styles, and limited the range of values to show, and so on.
Objective-C
714
star
2

XYDebugView

XYDebugView is debug tool to draw the all view's frame in device screen and show it by 2d/3d style like reveal did.
Objective-C
102
star
3

VerticalTree

🥶Provides a vertical drawing of the tree structure which can view information about the tree‘s nodes and supports console debug views & layers and so on
Swift
66
star
4

FORScrollViewEmptyAssistant

UITableView/UICollectionView superclass for showing empty datasets whenever the view has no content to display
Objective-C
58
star
5

UUKeyboardInputView

It helps some viewes,like button、cell、segment, which cann't respond those inputView as textField or texeView them do.
Objective-C
52
star
6

dingtalk_check_in

钉钉早上自动打卡 😂 😂 😂
Objective-C
42
star
7

FlappyBird

SpriteKit and external-display
Swift
26
star
8

XYPhotoKit

照片选择库,提供拍照和相册两种方式,支持单选多选,数据层是PhotoKit
Objective-C
26
star
9

WX_MultiTabList

微信小程序,多个Tab列表的上下拉刷新方案
JavaScript
26
star
10

UIKitDynamics

UIKit Dynamic UIDynamicAnimator UIDynamicBehavior
Objective-C
15
star
11

Einstein

Einstein is an UITest framework that integrates the logic across the Project and UITest through AccessibilityIdentified. And in UITest, using it to better support test code writing.
Swift
15
star
12

FORGestureTrackDisplay

FORGestureTrackDisplay is debug tool to displaying and tracking all kinds of gustures when user touch the screen.
Objective-C
8
star
13

UIAnimation

Objective-C
3
star
14

aboutMe

JavaScript
2
star
15

zhipingyang.github.io

Swift...Swift...Swift...😄...😄...😄 ! ! !
CSS
1
star