/****************** Attributes ********************/
/*预定义字符属性的文本。如果钥匙不在字典,然后使用默认值,如下所述。 */
以下属性是IOS6的
NSVerticalGlyphFormAttributeName NS_AVAILABLE_IOS(6_0); 一个NSNumber包含一个整数的值。0表示水平文本。1表示垂直文本。如果没有指定,它可以按照上级的垂直方向设置。目前在iOS,它总是水平。任何其他的行为是未定义的值。
NSFontAttributeName NS_AVAILABLE_IOS(6_0); uifont,默认Helvetica(新)12
NSParagraphStyleAttributeName NS_AVAILABLE_IOS(6_0); NSParagraphStyle, default defaultParagraphStyle 设置段落的
NSForegroundColorAttributeName NS_AVAILABLE_IOS(6_0); UIColor, default blackColor 设置前景颜色
NSBackgroundColorAttributeName NS_AVAILABLE_IOS(6_0); UIColor, default nil: no background 设置背景颜色
NSLigatureAttributeName NS_AVAILABLE_IOS(6_0); 包含整数的NSNumber, default 1: default 连写字符, 0: 非连写字符
NSKernAttributeName NS_AVAILABLE_IOS(6_0); NSNumber包含浮点值,在点量修改默认的字距调整。0指间距是不可用的。
NSStrikethroughStyleAttributeName NS_AVAILABLE_IOS(6_0); 包含整数的NSNumber, default 0: 没有删除线
NSUnderlineStyleAttributeName NS_AVAILABLE_IOS(6_0); 包含整数的NSNumber, default 0: 没有下划线
NSStrokeColorAttributeName NS_AVAILABLE_IOS(6_0); UIColor, 默认是和前景色一致的 设置笔画的颜色
NSStrokeWidthAttributeName NS_AVAILABLE_IOS(6_0); NSNumber包含浮点值, 在字体大小默认是百分之0: no stroke; 对单独的笔画是有利的,对充满的笔画模式是不利的 (在概述了文本的典型值是3)
NSShadowAttributeName NS_AVAILABLE_IOS(6_0); NSShadow, 默认是没有阴影的
以下的属性是IOS7的
NSTextEffectAttributeName NS_AVAILABLE_IOS(7_0); NSString, default nil: no text effect(影响)
NSAttachmentAttributeName NS_AVAILABLE_IOS(7_0); NSTextAttachment, default nil 附件属性
NSLinkAttributeName NS_AVAILABLE_IOS(7_0); NSURL (preferred) or NSString
NSBaselineOffsetAttributeName NS_AVAILABLE_IOS(7_0); NSNumber containing floating point value, in points; offset from baseline, default 0
NSUnderlineColorAttributeName NS_AVAILABLE_IOS(7_0); UIColor, default nil: same as foreground color
NSStrikethroughColorAttributeName NS_AVAILABLE_IOS(7_0); UIColor, default nil: same as foreground color
NSObliquenessAttributeName NS_AVAILABLE_IOS(7_0); NSNumber containing floating point value; skew to be applied to glyphs, default 0: no skew
NSExpansionAttributeName NS_AVAILABLE_IOS(7_0); NSNumber containing floating point value; log of expansion factor to be applied to glyphs, default 0: no expansion
NSWritingDirectionAttributeName NS_AVAILABLE_IOS(7_0); NSArray of NSNumbers representing the nested levels of writing direction overrides as defined by Unicode LRE, RLE, LRO, and RLO characters. The control characters can be obtained by masking NSWritingDirection and NSTextWritingDirection values. LRE: NSWritingDirectionLeftToRight|NSTextWritingDirectionEmbedding, RLE: NSWritingDirectionRightToLeft|NSTextWritingDirectionEmbedding, LRO: NSWritingDirectionLeftToRight|NSTextWritingDirectionOverride, RLO: NSWritingDirectionRightToLeft|NSTextWritingDirectionOverride,
/****************** Attributes ********************/的更多相关文章
- Eclipse "Unable to install breakpoint due to missing line number attributes..."
Eclipse 无法找到 该 断点,原因是编译时,字节码改变了,导致eclipse无法读取对应的行了 1.ANT编译的class Eclipse不认,因为eclipse也会编译class.怎么让它们统 ...
- 执行打的maven jar包时出现“Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes”
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for ...
- webapi filter过滤器中获得请求的方法详情(方法名,Attributes)
public class GlobalActionFilter : ActionFilterAttribute { private string _requestId; public override ...
- .NET Attributes
Attributes 特性 公共语言运行时允许添加类似关键字的描述声明,叫做attributes, 它对程序中的元素进行标注,如类型.字段.方法和属性等.Attributes和Microso ...
- 给iOS开发新手送点福利,简述文本属性Attributes的用法
给iOS开发新手送点福利,简述文本属性Attributes的用法 文本属性Attributes 1.NSKernAttributeName: @10 调整字句 kerning 字句调整 2.NSF ...
- jQuery in action 3rd - Working with properties, attributes, and data
properties properties 是 JavaScript 对象内在的属性,可以进行动态创建,修改等操作. attributes 指的是 DOM 元素标记出来的属性,不是实例对象的属性. 例 ...
- Unsupported configuration attributes: [FILE_UPLOAD]
Caused by: java.lang.IllegalArgumentException: Unsupported configuration attributes: [FILE_UPLOAD] 情 ...
- Jade模板引擎(一)之Attributes
目录: Attributes Boolean Attributes Style Attributes Class Attributes &Attributes Attributes jade中 ...
- ASP.NET MVC 使用带有短横线的html Attributes(转载)
转载地址:http://www.nmtree.net/2013/10/25/asp-net-mvc-use-dash-in-html-attributes.html 情景再现 我们常常需要一个文本框来 ...
- Create and Use Custom Attributes
http://www.codeproject.com/Articles/1811/Creating-and-Using-Attributes-in-your-NET-applicat Create a ...
随机推荐
- oracle中序列的使用
转载:http://blog.csdn.net/java958199586/article/details/7360152 序列: 是oacle提供的用于产生一系列唯一数字的数据库对象. l 自动提 ...
- Windows 8.1 归档 —— Step 3 软件的选择与安装
这里我将列举出一些 Windows 8.1 下实用的软件 --运行库-- 用精简版系统或者绿色版软件时,使用软件经常遇见的情况是“由于应用程序配置不正确,应用程序未能启动”,提示缺少dll文件等.大部 ...
- Bootstrap之Footer页尾布局(2015年05月28日)
直接上页尾部分的代码: <!--采用container-fluid,使得整个页尾的宽度为100%,并设置它的背景色--><footer class="container-f ...
- HttpClient(4.3.5) - Redirect Handling
HttpClient handles all types of redirects automatically, except those explicitly prohibited by the H ...
- Google Protocol Buffer
Google Protocol Buffer(protobuf)是一种高效且格式可扩展的编码结构化数据的方法.和JSON不同,protobuf支持混合二进制数据,它还有先进的和可扩展的模式支持.pro ...
- 使用EntityFramework连接 Mysql
原文:使用EntityFramework连接 Mysql 1,安装VS.net 插件 http://forums.mysql.com/read.php?174,601041,601041 2,安装连接 ...
- Unity3D项目实战笔记(10):Unity3D编译IPA的PostEvents–节约时间利器
最近,SDK支付等接入差不多了,就从Unity3D生成IPA (企业版License), 然,需要手动执行的PostEvents竟然多大10项+, 这些我默默的承受了1周时间,每次约浪费20分钟-额外 ...
- iOS app应用界面加载卡顿的问题
刚发布版本,忽然发现加载界面需要3-5秒延迟,那么问题来了. 首先,发现问题: 1.看代码,基于之前版本更新都没出问题,还是比较确信不是代码中的bug,以防万一,还是仔细看了下关于界面跳转部分的代码, ...
- iOS的沙箱目录和文件操作
一.沙箱 iOS的每一个应用程序都有自己的目录来存放数据,这个目录称为沙箱目录.沙箱目录是一种数据安全策略,它设计的原理是只能允许自己的应用访问目录,而不允许其他的应用访问,这样可以保证数据的安全,应 ...
- js(jQuery)获取时间搜集
获取JavaScript 的时间使用内置的Date函数完成 var mydate = new Date(); mydate.getYear(); //获取当前年份(2位) mydate.getFull ...