I have searched the solution to this in the past QAs, but could not find the right one.
Does anyone know how to adjust aUILabel
size dynamically to fit the
What you are searching is the UILabel method sizeToFit
I can try to explain to you, but the best answer to know how to work with UILabel is that: https://stackoverflow.com/a/1054681/666479
you get simply calculate UILabel
width for string size,try this simple code for set UILabel
size
// Single line, no wrapping;
CGSize expectedLabelSize = [string sizeWithFont:yourFont];
// you get width,height in expectedLabelSize;
//expectedLabelSize.width,expectedLabelSize.height