【简单常用】label
来源:互联网 发布:视频后期调色软件 编辑:程序博客网 时间:2024/06/05 00:25
UILabel *label = [[UILabelalloc]initWithFrame:CGRectMake(50.0,380.0, 200.0, 50.0)];
label.font = [UIFontboldSystemFontOfSize:20];
label.textColor = [UIColororangeColor];
label.textAlignment=NSTextAlignmentCenter;
label.numberOfLines =2;
label.backgroundColor=[UIColorclearColor]; //可以去掉背景色
//设置阴影
label.shadowColor = [UIColorredColor];
label.shadowOffset =CGSizeMake(1.0,1.0);
label.userInteractionEnabled =YES;
//设置文字过长时的显示格式
label.lineBreakMode =UILineBreakModeMiddleTruncation;//截去中间
// typedef enum {
// UILineBreakModeWordWrap = 0,
// UILineBreakModeCharacterWrap,
// UILineBreakModeClip,//截去多余部分
// UILineBreakModeHeadTruncation,//截去头部
// UILineBreakModeTailTruncation,//截去尾部
// UILineBreakModeMiddleTruncation,//截去中间
// } UILineBreakMode;
- 【简单常用】label
- ios Label常用方法
- ios Label常用方法
- label的简单用法
- 关于Label常用的计算
- label标签的常用作用
- UIKit-Label的简单用法
- UI组件式样: 简单Label
- awt简单应用二 标签Label
- label
- Label
- label
- Label
- label
- Label
- label
- label
- label
- 树莓派Raspberry Pi - 还原已经装过系统的TF卡
- 正则表达式 pcre
- 第一个awt程序
- [LeetCode]longest common/same prefix
- 第十八题
- 【简单常用】label
- Redis 服务监控
- leetcode008:String to Integer (atoi)
- hdu 1518 Square
- Web.xml配置详解
- ubuntu下ftp服务器搭建
- 第十九题
- Redis 服务管理
- UVA - 10313 Pay the Price