How to create UILabel programmatically in swift?

0 votes
211 views
asked Jan 10, 2015 in Swift by admin (8,115 points)
hi

  How to create UILabel programmatically in swift?

1 Answer

0 votes
answered Jan 10, 2015 by jonathan (3,105 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;

...