ios-UIlabel
let label:UIlabel = UIlabel(frame:CGrect(x:0,y:0,width:20,height:40))
label.text = "i love ios"
label.font = UIFont.boldSystemFontOfSize(20)
label.textcolor = UIColor.red
label.backgroudColor = UIColor.red
//设置文字对其方式
label.textAlignment = NsTextAlignment.Center
//设置label的阴影
label.shadowColor = UIColor.orangeColor()
label.shadowOffset = CGrect(x:0,y:0,width:20,height:40)
//设置label的行数 0 为无限行
lebel.numberOfLines = 0
self.view.addSubview(label)