-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UILabel is not displayed when it is added to the page. #67
Comments
garispe
changed the title
UILabel doesn't show
UILabel is not displayed when it is added to the page.
Mar 29, 2017
Hi Garispe - The following code works for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UILabel is not displayed when it is added to the page.
let page1 = UIView(frame: CGRect(x: 0, y: 0, width: 595.0, height: 842.0))
page1.backgroundColor = .white
let label = UILabel.init(frame: CGRect(x: 0, y: 0, width: 595.0, height: 25))
label.textAlignment = .center
label.textColor = UIColor.black
label.font = UIFont.systemFont(ofSize: 13, weight: UIFontWeightMedium)
page1.addSubview(label)
The text was updated successfully, but these errors were encountered: