UILabel头文件常见属性
- text : default is nil 文本属性,默认值是 nil
@property(nullable, nonatomic,copy) NSString *text;
- font : default is nil (system font 17 plain) 字体属性,默认系统17号字体
@property(null_resettable, nonatomic,strong) UIFont *font;
- textColor : default is nil (text draws black) 文本颜色属性,默认黑色
@property(null_resettable, nonatomic,strong) UIColor *textColor;
- shadowColor : default is nil (no shadow) 阴影属性,默认没有阴影
@property(nullable, nonatomic,strong) UIColor *shadowColor;
- shadowOffset : default is CGSizeMake(0, -1) -- a top shadow 阴影偏移位置,默认顶部位置有1个点的阴影
@property(nonatomic) CGSize shadowOffset;
- textAlignment : default is NSTextAlignmentLeft 文本对齐方式,默认左对齐。(取值为枚举)
@property(nonatomic) NSTextAlignment textAlignment;
- attributedText : 可在设置文字时,同时设置文字的属性内容,包括字体,颜色等。
@property(nullable, nonatomic,copy) NSAttributedString *attributedText NS_AVAILABLE_IOS(6_0);
- highlighted : default is NO 是否高亮,默认状态 NO
@property(nonatomic,getter=isHighlighted) BOOL highlighted;
- highlightedTextColor : default is nil,高亮状态时文本颜色。 默认 nil
@property(nullable, nonatomic,strong) UIColor *highlightedTextColor;
- userInteractionEnabled : default is NO 是否可以跟用户交互,默认 NO
@property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled;
- enabled : default is YES. changes how the label is drawn 是否是可用状态,默认YES,可以改变标签如何绘制
@property(nonatomic,getter=isEnabled) BOOL enabled;
- numberOfLines : 文本显示的行数。0是无限行
@property(nonatomic) NSInteger numberOfLines;
- adjustsFontSizeToFitWidth : default is NO。调整字体的大小以适应标签的大小。默认不调整。
@property(nonatomic) BOOL adjustsFontSizeToFitWidth;
UILabel头文件常见属性的更多相关文章
- UIButton 头文件常见属性和方法
UIButton头文件常见属性 1.属性 contentEdgeInsets: default is UIEdgeInsetsZero.设置内容四边距,默认边距为0 @property(nonatom ...
- Objective的头文件@interface属性
源码:http://files.cnblogs.com/ios8/TestPropertyDemo.zip 1 前言 最近有个疑惑 @interface中的属性和@property声明的属性有什么区别 ...
- 016-PHP读取文件常见属性
<?php print("文件的所有者(UID 值):"); print(fileowner("data.txt") . "<br> ...
- 用javah 导出类的头文件, 常见的错误及正确的使用方法
******************************************************************************** 用javah 导出类的头文件, 常见的 ...
- arpa/inet.h所引起的Segmentation fault及网络编程常见的头文件
最近在学习Linux网络编程方面的知识,感觉还是有些困难.主要是对协议过程的理解,还有socket的API的理解不够深刻.今天复习编写了一个TCP的服务端和客户端的程序实现client.c从命令行参数 ...
- 预编译头文件 StdAfx.h
预编译头文件: 最常见的使用场景就是 StdAfx.h 文件,在这个文件中包含常用的头文件,比如windows.h,cstdio,string,别的 .cpp 文件去包含 StdAfx.h 头文件.编 ...
- .c和.h文件的区别(头文件与之实现文件的的关系~ )
.c和.h文件的区别 一个简单的问题:.c和.h文件的区别 学了几个月的C语言,反而觉得越来越不懂了.同样是子程序,可以定义在.c文件中,也可以定义在.h文件中,那这两个文件到底在用法上有什么区别呢 ...
- C++ 头文件系列(queue)
简介 这个头文件定义了两个跟队列有关的类----quque.priority_queue,分别实现的是队列 和 优先队列这两个概念. 但是与这两个类模版与其它类模版(vector.array等)最大的 ...
- Request 对象 response 对象 常见属性
请求和响应 Express 应用使用回调函数的参数: request 和 response 对象来处理请求和响应的数据. app.get('/', function (req, res) { // - ...
随机推荐
- mysql配置的讲解 mysql的root密码重置 mysql的登录
一,MySQL配置的讲解 port 默认mysql端口 socket 用于服务器端和客户端通信的套连接文字 skip-locking 取消文件系统的外部锁 key_buffer_size 索引缓 ...
- 6个理由告诉你为什么要用NAS
当电脑硬盘容量满了,多数使用者第一个想法就是买一块几TB的硬盘来扩充,如果是笔电的使用者,第一个想到的是买一个外接式硬盘来备份资料,这样的想法并没有错,那是当你还不知道有「NAS」这个好用的东西,才会 ...
- Table生成Excel表格
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- VS插件集
Unit Test Generator 很好用的测试插件 注:在VS2015中,改名为Test generator Nunit extension了. ReSharperPlatformVs11 ...
- Spring 入门 Ioc-Xml
通过一个小例子演视怎么通过 Spring 往程序中注入对象,而非手动 new 对象. 一.导入 Spring 所需要的包 spring-framework-2.5.6 版需要导入以下包: 1.---- ...
- Spring学习之Ioc控制反转(1)
开始之前: 1. 本博文为原创,转载请注明出处 2. 作者非计算机科班出身,如有错误,请多指正 ---------------------------------------------------- ...
- error LNK2019: 无法解析的外部符号 "public:
错误 1 error LNK2019: 无法解析的外部符号 "public: __thiscall test::test(void)" (??0test@@QAE@XZ),该符号在 ...
- js 数组排除重复值(string)
前提:数组中的元素类型为:string 在网上看了许多高大尚的文章,还是解决不了我的string arry 的问题,只能怪自己脑残了,上代码: <!DOCTYPE html> <ht ...
- Naive Bayes(朴素贝叶斯算法)[分类算法]
Naïve Bayes(朴素贝叶斯)分类算法的实现 (1) 简介: (2) 算法描述: (3) <?php /* *Naive Bayes朴素贝叶斯算法(分类算法的实现) */ /* *把. ...
- PHP header() http各种状态码大全查询
PHP header()the function declaration: void header ( string string [, bool replace [, int http_respon ...