iOS does not have a similar support. Usually you use autolayout to adjust the layout of your labels depending on the string length (I think you need the opposite).
I would obtain the function you need subclassing UILabel
and overriding the setText
method, setting the text based on the width of the label (sizeWithAttributes
).