- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/Morris-Chen007/MCGifEmojiLabel
软件介绍
MCGifEmojiLabel 是一款用户友好的 UILabel 子类,允许开发者以动图的形式显示emoji,同时允许自行添加链接。借鉴了 OHAttributedLabel 的部分代码。
使用非常方便:
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
MCGifEmojiLabel* label = [[MCGifEmojiLabel alloc] initWithFrame:CGRectMake(10, 100, 300, 100)];
[label setTextWithEmoji:@"When I was young I'd listen to the radio(#laughing),waiting for my favorite songs(#smiling).When they played I'd sing along(#flushed).It made me smile."];
[label addCustomLink:[NSURL URLWithString:@"https://github.com"] inRange:NSMakeRange(0, 40)];
label.highlightedLinkColor = [UIColor grayColor];
label.lineBreakMode = NSLineBreakByWordWrapping;
[self.view addSubview:label];
}
预览:
设计模式之禅(第2版)
秦小波 / 机械工业出版社 / 2014-2-25 / 89.00元
本书是设计模式领域公认的3本经典著作之一,“极具趣味,容易理解,但讲解又极为严谨和透彻”是本书的写作风格和方法的最大特点。第1版2010年出版,畅销至今,广受好评,是该领域的里程碑著作。深刻解读6大设计原则和28种设计模式的准确定义、应用方法和最佳实践,全方位比较各种同类模式之间的异同,详细讲解将不同的模式组合使用的方法。第2版在第1版的基础上有两方面的改进,一方面结合读者的意见和建议对原有内容中......一起来看看 《设计模式之禅(第2版)》 这本书的介绍吧!
