Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic Label in Swift, doesn't Scroll

Tags:

ios

swift

I'm Learning Swift, and I want to figure out how I can scroll the UILabel

I have a Label that is populated dynamically , But the text goes under the bottom bar.

enter image description here

I tried with 0 Lines, Constraints.. I'd like to scroll the view for read whole text

UPDATE

After the answers I have this situation

enter image description here

With Textview I Can read all my text, using the scroll With UIScrollbar and UILabel, I can't read all my Text.

When I have to use TextView instead of UIScrollBar+UiLabel?

like image 435
monkeyUser Avatar asked Jan 02 '15 15:01

monkeyUser


1 Answers

Alternatively, you can replace UILabel with UITextView. Then set textView.editable = false.

like image 81
Emzor Avatar answered Sep 23 '22 22:09

Emzor