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
UILabel
You can use this piece of code for calculate label width and set it
CGSize expectedLabelSize = [name sizeWithFont:yourfont constrainedToSize:maximumLabelSize];
// you can get width width height from expectedLabelSize and set accordingly