Yahia
Yahia

Reputation: 691

Setting up custom UILabel

I want to get a UILabel with same background and font as in this image.

enter image description here

Upvotes: 0

Views: 283

Answers (1)

Mick MacCallum
Mick MacCallum

Reputation: 130193

Simple, First drag and drop a label.

enter image description here

Select your label, then you can adjust its attributes by doing the following.

Define a custom font color.

enter image description here

Choose the font that you feel best matches what you are looking for.

enter image description here

Change your background color.

enter image description here

Or for the gradient effect as the label background you can do this by setting an image as the background like so.

theLabel.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"blah"]];

I've guided you through the steps of making this happen, but for future reference, you won't get a very good response on this website simply by asking someone to do your work for you.

Upvotes: 2

Related Questions