Last Updated: February 25, 2016
·
695
· jorge__galindo

Easy code for adapt the size of the Uilabel to size of the string

CGFloat width = lblName.text sizeWithFont:lblNamefont.width;

lblName.frame = CGRectMake(lblName.frame.origin.x,lblName.frame.origin.y,width,lblName.frame.size.height);