0 votes
220 views
asked in Swift by (8.2k points)
hi

  How to create UILabel programmatically in swift?

1 Answer

0 votes
answered by (3.1k points)

var addressLbl:UILabel = UILabel(frame: CGRectMake(0, 0, referenceImages.frame.size.width, 50))

            addressLbl.numberOfLines = 0;

            addressLbl.textColor = UIColor.whiteColor();

            addressLbl.text = placeData.address;

Categories

...