I quickly create my UILabel:
let label = UILabel(frame: CGRect( x: 50, y: 50, width: 100, height: 50))
Settings Properties
seem easy:
label.textColor = UIColor.redColor()
How to implement enumeration types such as textAlignment? In Objective C, it was
label.textAlignment = NSTextAlignmentCenter;
but quickly it does not work.
enums uilabel swift
Thorax Jun 04 '14 at 9:53 on 2014-06-04 09:53
source share