tags:

views:

70

answers:

1

How can i add a background image to a UILabel in an iPhone Application. I've tried to do it through IB but with no result.

Can anybody help me..

Looking forward to your reply.

+2  A: 

Try doing it with code:

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

Or place an UIImageView behind the label (not recommended).

Evadne Wu
Thanks a lot. That's exactly what i want.
Joy