Hello,
I have a table view cell with 3 subviews added, 2 labels and an imageview. Under the emulator the image view correctly shows png transparency in the cell, but when I upload the app to my ipodtouch for testing, the png areas that should be transparent show as black. Is this a bug or something I am missing which is overriding this?
My code is:
Thanks in advance
I have a table view cell with 3 subviews added, 2 labels and an imageview. Under the emulator the image view correctly shows png transparency in the cell, but when I upload the app to my ipodtouch for testing, the png areas that should be transparent show as black. Is this a bug or something I am missing which is overriding this?
My code is:
Code:
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
{
// Layout cellstyle
messageLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 10, 240, 50)];
// Setup layout
UIImage *messageImage = [UIImage imageNamed:@"unread.png"];
statusImageView = [[UIImageView alloc] initWithImage:messageImage];
statusImageView.frame = CGRectMake(250, 40, 35, 35);
messageLabel.font = [UIFont fontWithName:@"Helvetica" size:15];
messageLabel.numberOfLines = 3;
[self.contentView addSubview:titleLabel];
[self.contentView addSubview:messageLabel];
[self.contentView addSubview:statusImageView];
}
return self;
}
Thanks in advance