UITableView not showing background image.

Posted by K.Honda on Stack Overflow See other posts from Stack Overflow or by K.Honda
Published on 2011-06-22T08:05:18Z Indexed on 2011/06/22 8:22 UTC
Read the original article Hit count: 157

I have a uitableview with 2 cells (custom tableviewcells) and a button for login. I made them programmatically. Now I want to put a background image behind the 2 custom cells and the button. I went into IB and put the image view on top of the tableview and then put a picture on it which I want as the background. Then I went into viewDidLoad and put this bit of code tblSimpleTable.backgroundColor = [UIColor clearColor]; to clear the tableviews background colour.

It now looks like this:

enter image description here

But the background does not appear. Does anyone know how to fix this?

Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview