How to automatically resize uilabel on text

There are two step solution to do that. First, Set the value of line to ZERO (default value is ONE) this mean that the value of line is unlimited

Second step is , setting your fix height of uilabel. Below, I fixed 30.The relation part come with “equal” as default. Change with as “Greater Than or Equal”.

End of the two step, uilabel auto resize height depend on text.It’s that simple 🙂

Show your support

Clapping shows how much you appreciated suzan ongulu’s story.