user2128531
user2128531

Reputation: 153

UILabel text customization

enter image description here

I have to make this screen in iPhone app. I am using UIScrollView and UILabel to do this, but cannot be able to customize text in label like 'Q' and 'A' spacing from other text and blue color of email text. Can anybody help me? I found some customization libraries but not good to understand and use.

Upvotes: 1

Views: 141

Answers (1)

iDroid
iDroid

Reputation: 10533

Starting from iOS 6 you can use Attributed String, just create your UILabels in the Storyboard/UI Editor and customize them in the Attributes Inspector window on the right side. I would place an additional Label for the A and Q characters to have a fixed gap.

enter image description here

If you are working with an older iOS version, take a look at the TTTAttributedLabel. There are a couple of examples on the site, it's very easy to integrate and use it in your project.

Upvotes: 3

Related Questions