How to autosize UILabel to Textsize in IOS using Objective-C

labelTest.text = @"This is my Teststring.This is my Teststring.This is my Teststring.This is my Teststring.This is my Teststring.This is my Teststring.";
labelTest.numberOfLines = 0;
[labelTest sizeToFit];

Please Share us:
Please rate this snippet

4 thoughts on “How to autosize UILabel to Textsize in IOS using Objective-C

Leave a Reply