没有合适的资源?快使用搜索试试~ 我知道了~
TextStyling:使用样式表规则从 XML 创建 NSAttributedString
共16个文件
swift:6个
plist:2个
xml:1个
需积分: 10 0 下载量 23 浏览量
2021-06-10
06:36:10
上传
评论
收藏 25KB ZIP 举报
温馨提示
介绍 iOS(和 Mac OS)上的文本样式是使用NSAttributedString完成的,其中“属性”是要应用于字符串子范围的文本样式修饰符。 创建具有复杂样式的NSAttributedString可能是一个乏味的过程。 例如,创建属性字符串的一种方法可能是: let redHello = NSAttributedString ( string : " Hello " , attributes : [ NSFontAttributeName : someFont, NSForegroundColorAttributeName : UIColor. redColor ()]) let blueWorld = NSAttributedString ( string : " World " , attributes : [ NSFontAttributeName : someFont,
资源推荐
资源详情
资源评论
收起资源包目录
TextStyling-master.zip (16个子文件)
TextStyling-master
Example
TextStylingTests
TextStylingTests.swift 917B
Info.plist 752B
TextStyling
ViewController.swift 3KB
Moby Dick.xml 12KB
Base.lproj
LaunchScreen.xib 4KB
Main.storyboard 2KB
BridgingHeader.h 229B
AppDelegate.swift 2KB
Images.xcassets
AppIcon.appiconset
Contents.json 1KB
Info.plist 1KB
TextStyling.xcodeproj
project.xcworkspace
contents.xcworkspacedata 156B
project.pbxproj 18KB
TextStyling
TextStyling.swift 11KB
TextStylingParser.swift 4KB
TextStyling+UIKit.swift 3KB
README.md 4KB
共 16 条
- 1
资源评论
帝哲
- 粉丝: 34
- 资源: 4669
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功