ios draw NSMutableAttributedString
来源:互联网 发布:excel中删除重复数据 编辑:程序博客网 时间:2024/05/17 03:58
//CGMutablePathRef path = CGPathCreateMutable();
//CGPathAddRect(path , NULL,
//CGRectMake(0, 0,
//self.bounds.size.width,
//self.bounds.size.height));
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetTextMatrix(context, CGAffineTransformIdentity);
CFAttributedStringRef attrString = (__bridge CFTypeRef)self.attributedString;
CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString(attrString);
CGPathRef path = CGPathCreateWithRect(self.bounds, NULL);
CTFrameRef frame = CTFramesetterCreateFrame(framesetter,
CFRangeMake(0, 0),
path , NULL);
CTFrameDraw(frame, context);
CGPathRelease(path );
CFRelease(framesetter);
UIGraphicsPushContext(context);
0 0
- ios draw NSMutableAttributedString
- IOS NSMutableAttributedString用法
- iOS属性字符串NSMutableAttributedString
- ios自定义字符 NSMutableAttributedString
- iOS NSMutableAttributedString 使用详解
- iOS中NSMutableAttributedString 小结
- ios富文本NSMutableAttributedString
- iOS NSMutableAttributedString详解
- iOS NSMutableAttributedString字符串属性
- iOS NSMutableAttributedString 使用详解
- NSMutableAttributedString IOS中的富文本
- IOS之NSAttributedString和NSMutableAttributedString
- 【iOS开发】NSAttributedString和NSMutableAttributedString
- iOS开发 ☞ NSMutableAttributedString详解
- ios 图文并排功能 NSMutableAttributedString
- iOS NSMutableAttributedString常用方法总结
- iOS NSMutableAttributedString 实现富文本
- iOS NSMutableAttributedString 实现富文本
- Java IO文件编码转换
- 求64位能表示的最大斐波那契数
- coding----1wcods----坚持第5天----758行
- source Insight
- 研发者角度看用户体验 --“第四届用户体验(HiUED)峰会”有感
- ios draw NSMutableAttributedString
- CocoaPods 导入第三方库头文件自动补齐
- 约瑟夫环问题(josephus problem)详解
- 【android,16】android 视频播放器
- 关于setitimer
- 关于TNSNAMES.ORA中SERVICE_NAME,SID的一点理解
- android如何实现开机自动启动Service或app
- 手机产品设计禁忌
- tomcat 使用心得(问题)-eclipse 启动tomcat 后 浏览器访问404 --eclipse复制工程显示原来的工程名