Display full paragraph in a detail view with UIScrollView
I currently have a drill down table set up to load a detail view. I have successfully displayed text through an UILabel outlet, but this is limited to one sentence or so. I would like to display an entire paragraph inside of the detail view. A friend suggested a UIScrollView but I cannot figure out how to load the text into this scroll view in the viewDidLoad function. Any suggestions other than a scroll view and/or how to display the text inside a scroll view? Individual xib files for each separate detail view would not work because I would have a total of roughly 50 xib files. Any help would be great!
The scroll view would need to contain something to display the text. Like, a label or a text view.
I don't believe you are correct that a label is limited. You just need to make it physically large enough to contain the text you want to display, and you need to set the number of lines to 0. A text view will provide scrolling if there is enough text to warrant it.
The scroll view would need to contain something to display the text. Like, a label or a text view.
I don't believe you are correct that a label is limited. You just need to make it physically large enough to contain the text you want to display, and you need to set the number of lines to 0. A text view will provide scrolling if there is enough text to warrant it.
You are absolutely right! All I had to do was set the number of lines to 0. Really makes you feel like a newb with such a simple solution haha! Thanks alot!