/****************** 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 ...
随机推荐
- 【Knockout】四、绑定上下文
Binding context binding context是一个保存数据的对象,你可以在你的绑定中引用它.当应用绑定的时候,knockout自动创建和管理binding context的继承关系. ...
- django 学习-2 模板
如何使用渲染模板的方法来显示内容. 1.创建一个项目dream django-admin.py startproject dream cd dream 再创建一个应用 python m ...
- IOS Delegate & protocal
总结一下: delegate是一个方式,程序组成单元之间分工的一种协调思想 protocal 这个东西不能单独说,要与它相关的两个主要东西一起说,一个是 委托者 通常是VIEW, 一个是被委托者 通常 ...
- 常用的sql标准建表语句
使用指定数据库 use v4base 建一张表 /*************************************************************************** ...
- Red Hat Enterprise Linux 5安装序列号
为了保证安装的组件和订阅相匹配,红帽企业 Linux 5 需要输入一个安装号.它被用来配置安装程序来提供正确的软件包.安装号码包含在你的订阅里. 如果您没有输入安装号码,只有核心服务器或 Deskto ...
- Android之自定义画图文字动画
结构: BaseView: package com.caiduping.canvas; import android.content.Context; import android.graphics. ...
- Linux -Yum 命令详解
yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器.基於RPM包管理,能够从指定的服务器自动下载RP ...
- Linux c字符串中不可打印字符转换成16进制
本文由 www.169it.com 搜集整理 如果一个C字符串中同时包含可打印和不可打印的字符,如果想将这个字符串写入文件,同时方便打开文件查看或者在控制台中打印出来不会出现乱码,那么可以将字符串中的 ...
- javascript函数没有重载测试
今天继续学习javascript系列教程,虽然是基础,但我觉得还是有必要用心来学习的,不要怕难,不用怕忘记,不要怕学不会.哪个高手不是从零开始的,我要坚定自己的学习信心,并且认真的走下去.虽然路途艰辛 ...
- SQL Server 中WITH (NOLOCK)浅析(转潇湘隐者)
博文出处:http://www.cnblogs.com/kerrycode/p/3946268.html 概念介绍 开发人员喜欢在SQL脚本中使用WITH(NOLOCK), WITH(NOLOCK)其 ...