Christian
Christian

Reputation: 7419

Formating Text within a UITextView using Swift

I want to add an "About" View into my (swift) iOS App. Currently I have centered a UiTextView into this ViewController. Now I am wondering if it's possible to format text in this TextView like I can for instance in a html website?

Or is it better to use some other component for this?

Thanks

Upvotes: 1

Views: 223

Answers (1)

joakim
joakim

Reputation: 4041

Since it's not supposed to be editable (it's an about page), why not go with a UILabel?

You can use NSAttributedString to get access to more customization options than what you get with NSString.

Upvotes: 2

Related Questions