aspose file tools*
The moose likes iOS and the fly likes How to create a grey (or any color) UILabel? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » iOS
Bookmark "How to create a grey (or any color) UILabel?" Watch "How to create a grey (or any color) UILabel?" New topic
Author

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

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

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

Joined: Mar 02, 2009
Posts: 136

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


iOS * Android Developer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a grey (or any color) UILabel?