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 150 times
0

Pieter Kuijpers
- 7,247
- 5
- 28
- 36

TechChain
- 8,404
- 29
- 103
- 228
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,985
- 19
- 33
-
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