Is there anyway to set the height of a UILabel programmatically? I\'ve added a bunch of constraints to my .Xib files so every other label is dependent upon the one above or belo
plz take the IBoutlet of constraint height and set the height you want
try this:
var frame: CGRect = nameLabel.frame
frame.size.height = height
nameLabel.frame = frame
Write this line :
constLblHeight.constant = 0;
//Below image step
//Step 1: Add Constraint in label height
//Step 2: Create object of label height constraint (constLblHeight)