UITableView scrollable background , UITableViewCell transparency

Posted by f0rz on Stack Overflow See other posts from Stack Overflow or by f0rz
Published on 2010-05-19T11:18:14Z Indexed on 2010/05/19 11:20 UTC
Read the original article Hit count: 217

Hi!

In my UITableView I have custom cells. My UITableView have a repeatable background

   myTableView.backgroundColor = [UIColor colorWithPatternImage: 
                                 [UIImage imageNamed: @"backg.png"]];

I set my cells to have their background (clear);

UIView *backView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
    backView.backgroundColor = [UIColor clearColor];
    cell.backgroundView = backView;

This makes the cell have the same background as the TableView..

Problem is;
That seems that every cell loads myTableView.backgroundColor once again. And the background are not being repeatble as it should. I want to have the cells totally with no background at all, instead they loads up myTableView.backgroundColor once again.

Here is one example.

alt text

Can anyone help me?

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about iphone-sdk