I want to show a paragraph of text. I have tried UILabel but this makes the text vertically aligned: it does not start from top. If I use UITextView and disable the properties selectable and editable it behaves like UILabel. Which component should I use?
Asked
Active
Viewed 113 times
0
Pieter Kuijpers
- 7,167
- 5
- 27
- 36
TechChain
- 7,802
- 26
- 94
- 211
1 Answers
0
You can use UILabel to TextView with NSAttributtedString.
Also you can also set your ULLabel or textview text attribute from storyboard .
Imran
- 2,935
- 17
- 32
-
but i can't set it position from top – TechChain Oct 09 '15 at 06:41
-
Look in details NSBaselineOffsetAttributeName attribute of NSAttributedString – Imran Oct 09 '15 at 06:56
-
I am going to use UITextView which will reduce the efforts for writing the code for position the text of uilabel – TechChain Oct 09 '15 at 08:36