PeriscommentView-OCObjective-C版本的PeriscommentView
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]
评论