PeriscommentView-OC - Objective-C版本的PeriscommentView


MIT
iOS
Objective-C

软件简介

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]