I have text which can be of variable length. I want to adjust the size of the button to show the text. Some times the text is too much and in those cases I want to limit the size to certain width. How can I do that for UIButton.
Above is the text that is way to long. I want to only show maybe 40 characters.
I am trying to use the range and I get the following:
Final result: