Why is my UIColor white actually gray?
Why is my UIColor white actually gray?
- Subject: Why is my UIColor white actually gray?
- From: James Cicenia <email@hidden>
- Date: Fri, 6 Mar 2009 14:57:09 -0600
Hello -
I have a table view with dynamic subclassed cells :
- (id)initWithFrame:(CGRect)aRect reuseIdentifier:(NSString *)identifier
{
if (self = [super initWithFrame:aRect reuseIdentifier:identifier])
{
self.selectionStyle = UITableViewCellSelectionStyleNone;
[self setImage:[[UIImage imageNamed:@"WF-MyLocBu-
DistBack.png"]autorelease]];
UIImageView *imageView = [[UIImageView alloc] initWithImage:
produceImage];
[self.contentView addSubview:imageView];
[imageView release];
CGRect frame = CGRectMake(60, 0, 140, 60);
produceName = [[UILabel alloc] initWithFrame:frame];
produceName.backgroundColor = [UIColor clearColor];
produceName.opaque = YES;
produceName.textAlignment = UITextAlignmentLeft;
produceName.textColor = [UIColor whiteColor];
produceName.font = [UIFont boldSystemFontOfSize:16];
[self.contentView addSubview:produceName];
[produceName release];
}
return self;
}
BUT The font is hard to read and actually gray and not white?
Thanks
James Cicenia
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden