Objective-C版本的PeriscommentView PeriscommentView-OC
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/devtofu/PeriscommentView-OC
- 软件文档: https://github.com/devtofu/PeriscommentView-OC/archive/master.zip
- 官方下载: https://github.com/devtofu/PeriscommentView-OC/archive/master.zip
软件介绍
PeriscommentView-OC 是OC版本的PeriscommentView。PeriscommentView是可以显示名称和注释的模块,它的设计灵感来自Periscop。演示如下:
用法:
Swift 用法
import PeriscommentView let periscommentView: PeriscommentView = ... let profileImage = UIImage(named: "hoge.png")! let name = "name" let comment = "comment" PeriscommentView.addCell(profileImage, name: name, comment: comment)
Objective-C 用法
TTPeriscommentView *periscommentView = [TTPeriscommentView initWithFrame:...]; UIImage *avatar = [UIImage imageNamed:@"twitterProfile.jpeg"]; NSString *name = @"@yoavlt"; NSString *comment = @"Awesome!"; [periscommentView addCellWithName:name comment:comment profileImage:avatar]
