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) { // - ...
随机推荐
- css系列教程--margin padding column(完结)
margin/margin-left/margin-right/margin-top/margin-bottom设置边距属性margin:0;--所有外边距0margin:0 1px;--margin ...
- LINQ 操作符
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace LinQ ...
- Jq自定义动画
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- 关于OC-省市区习题
对于省市区的问题,关键在于搞清楚数组嵌套字典,字典里面装数组的多重嵌套关系,沉下心来,捋清楚思路, 实在看不懂就多打几遍,这道题理解了,熟练了对之后学习很有好处. 代码如下: NSString *pa ...
- hdu2317Nasty Hacks
Problem Description You are the CEO of Nasty Hacks Inc., a company that creates small pieces of mali ...
- H-Index,H-Index II
1.H-Index Total Accepted: 19058 Total Submissions: 70245 Difficulty: Medium Given an array of citati ...
- spring注解注入:<context:component-scan>使用说明
spring从2.5版本开始支持注解注入,注解注入可以省去很多的xml配置工作.由于注解是写入java代码中的,所以注解注入会失去一定的灵活性,我们要根据需要来选择是否启用注解注入. 在XML中配置了 ...
- nginx,php日志分割
作者:zhanhailiang 日期:2014-01-06 默认nginx只会生成一个access.log和一个error.log,并且每天不断积累,日志文件会变的非常大,如果需要做一下日志的分析,无 ...
- 安装windows7和ubuntu双系统后引导项设置
win7系统,U盘安装ubuntu,在选择[安装启动引导器的设备]时,1.如果你选择的是/dev/sda,即整个硬盘,他会将启动引导器使用grub进行系统引导,而不再使用windows loader, ...
- 什麼是 N-key 與按鍵衝突?原理說明、改善技術、選購注意完全解析
不管是文書處理或遊戲中,我們都經常會使用到組合鍵,也就是多顆按鍵一起按下,執行某些特定的功能.有時候你可能會發現,明明只按下2顆鍵,再按下第3顆鍵時訊號卻沒有輸出.要是打報告到一半遇到這種狀況還好,如 ...