• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a grey (or any color) UILabel?

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to create a UILabel with grey background:

But no grey area is shown around the priority.
If I add a new one, a grey area appears for less than a second around the priority but it disappears immediately. Not to mention that the priority value isn't located at the center for the grey area.

Any idea what I'm doing wrong?
 
Pratik Goswami
Ranch Hand
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,

You should set background color of UILabel rather than layer's background color of UILabel
Change this line

with this


Thanks
Pratik Goswami
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic