摘要:
// 添加表情 NSTextAttachment *attch = [[NSTextAttachment alloc] init]; // 表情图片 attch.image = [UIImage imageNamed:@"d_aini"]; // 设置图片大小 attch.bounds ... 阅读全文
摘要:
TTTAttributedLabel 库地址 https://github.com/TTTAttributedLabel/TTTAttributedLabel可以实现电话 地址 链接自动查找显示等 //可以自动检测url label.enabledTextCheckingTypes = NSTex... 阅读全文
摘要:
NSString *url = @"http://tw.news.yahoo.com/麵包魂東京吸睛-粉絲包圍導演-061222049.html"; NSLog(@"url: %@", url);//ios9中采用下边方法转换NSString *urlString = [urlstringBy... 阅读全文
摘要:
//话题 ## NSMutableAttributedString * contentStr = [[NSMutableAttributedString alloc] initWithString:Content]; NSError *error = NULL; NSRegularExpress... 阅读全文