How to set UITableView background Image ?

By | April 7, 2012

Hi,

Setting a background image to the UITableView will make it looks great! Use the following code to set a background image to a UITableView.


UIImage *bgImage= [UIImage imageNamed:@"sampleImage.png"];

UIImageView *bgView= [[UIImageView alloc] initWithImage:bgImage];

urTblView.backgroundView = bgView;

Here ‘urTblView’ is your UITableView.
🙂

Leave a Reply

Your email address will not be published. Required fields are marked *