Saturday, April 7, 2012

scrollable label / text


The last years i used a uiscrollview and added a label onto it. After that i calculated the size of the text height and did set the contentSize property of the scrollview. All this is not necessary by using a simple trick.

I wasn't aware of this before and maybe most people do it this way but in case somebody didn't know it here the very simple solution:

add a textview and set the editable property to no. That's it.

Happy coding :)

1 comment: