
解析HTML标签
发布日期:2021-05-14 19:08:36
浏览次数:17
分类:精选文章
本文共 1502 字,大约阅读时间需要 5 分钟。
������������������������������������������������ HTML ��������������������������������������������������� NSMutableAttributedString
������������������������������������������������������������������������������������ HTML ������������������ Label ���������������������
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20, 100, 300, 200)];NSAttributedString *attributedString = [[NSAttributedString alloc] initWithData:[@"������������34������
"] dataUsingEncoding:NSUTF8StringEncoding options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];label.attributedText = attributedString;
������������������������������ API ������������������������������������������������������������_out accused��������������� dispatch_async
��� dispatch_get_main_queue()
������������������������������������������
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[self.courseModel.courseIntroduce dataUsingEncoding:NSUTF8StringEncoding] options:@{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType} documentAttributes:nil error:nil]; dispatch_async(dispatch_get_main_queue(), ^{ label.attributedText = attrStr; }); });
��������������������� HTML ������������������������������������������������������������ DTCoreText
��������������������������������������������������������������������� DTCoreText
������������������������������������
发表评论
最新留言
做的很好,不错不错
[***.243.131.199]2025年04月20日 09时25分06秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
GitHub完整记录数据库GHTorrent的下载和安装经验
2021-05-14
设计模式—— 三:依赖倒置原则
2021-05-14
SpringBoot打包之后乱码
2021-05-14
因SGA分配错误无法启动数据库
2021-05-14
Oracle修改字段类型方法总结
2021-05-14
ORA-00020 超过当前最大连接数
2021-05-14
合理控制oracle数据库具有DBA权限的用户
2021-05-14
喝红茶是否会上火
2021-05-14
Android进阶解密读书笔记2——第2章:Android系统启动——第1、2小节
2021-05-14
GreenDao之注解
2021-05-14
Android使用Font Awesome
2021-05-14
主线程中Looper的轮询死循环为何没有阻塞主线程?
2021-05-14
Gradle实战四:Jenkins持续集成
2021-05-14
使用RestTemplate,显示请求信息,响应信息
2021-05-14
wgcloud运维监控系统错误:防篡改校验错误次数大于10次,不再上报数据
2021-05-14
为什么WGCLOUD安装完后,启动服务端打不开网页
2021-05-14
wgcloud网络监控出现负值
2021-05-14
ios 官方sample
2021-05-14