Skip to content

Instantly share code, notes, and snippets.

@ahikmatf
Created October 26, 2016 09:59
Show Gist options
  • Save ahikmatf/c61df6de161d1d5cafca56de4cf3c497 to your computer and use it in GitHub Desktop.
Save ahikmatf/c61df6de161d1d5cafca56de4cf3c497 to your computer and use it in GitHub Desktop.
let label = UILabel(frame: CGRect(x: 0, y: 0, width: 200, height: 21))
label.center = CGPoint(x: 160, y: 285)
label.textAlignment = .center
label.text = "I'am a test label"
self.view.addSubview(label)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment