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);
Written by Jorge Galindo Cruces
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ios
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#