用swift创建第一个控件UILabel
来源:互联网 发布:linux系统性能优化 编辑:程序博客网 时间:2024/05/16 11:52
self.view.backgroundColor=UIColor.cyanColor()
let label1 = UILabel(frame: CGRectMake(100, 100, 100, 50))
label1.text="label1"
label1.textAlignment=NSTextAlignment.Center
label1.numberOfLines=0
//var color=UIColor(red: 245.0, green: 250.0, blue: 248.0, alpha: 1)
label1.backgroundColor=UIColor.lightGrayColor()
var lfont = UIFont(name: "ga", size: 14)
label1.font = lfont
//var textColor=UIColor(red: 100, green: 100, blue: 100, alpha: 1)
label1.textColor=UIColor.blackColor()
self.view.addSubview(label1)
0 0
- 用swift创建第一个控件UILabel
- Swift基础教程(swift代码创建第一个控件之UILabel)
- swift代码创建控件之UILabel
- swift中来创建一些常用控件。跟我们的第一个swift应用
- swift 创建第一个UIAlertView 和UIActionSheet
- 创建第一个的控件(用GDI+画一条线)
- 创建的第一个Listbox 控件
- swift创建第一个UIButton 并增加点击事件
- swift控件之旅之UILabel
- Swift的基础之UILabel控件
- 第一个swift程序
- 第一个swift程序
- 第一个swift程序
- OC-UIKit-UILabel&第一个程序
- swift UILabel
- Swift UILabel
- swift UILabel
- swift UILabel
- LeetCode Implement Trie (Prefix Tree)
- CronTrigger
- Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes
- http 基础认证(Basic Authentication)
- spring学习笔记一(IOC配置使用)
- 用swift创建第一个控件UILabel
- VMX学习-VMX Non-Root Operation
- Google Volley 解析参考文章
- 053第471题
- Android入门(41)——第三章:使用Toast动态显示信息
- jquery 字符串转换为数值
- js 中也是存在关键字的
- GRE写作必备句型
- onmouseover事件中把鼠标变成小手形状