Label swift


let label = UILabel(frame: CGRect(x: 100, y: 500, width: 100, height: 50))
label.backgroundColor = .gray
label.text="Hi"
label.textColor = .white
label.font=UIFont.boldSystemFont(ofSize: 30)

self.view.addSubview(label)
Previous
Next Post »