Breaking News
Home / iOS / iOS Snippets / How to set UITableView backround image?

How to set UITableView backround image?

Answer

UITableView has a property backgroundView that can be used to set an UIImageView to display an image in the background of the table.

Example in the below snippet we set the background property of UITableView to an image.

        UIImageView *background = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@”back.png”]] autorelease];
        theTableView.backgroundView = background;

This property was added in 3.2.0 release so check if iOS version >= 3.2.0 before using this.[pb_builder]

Check Also

EKCalendar – That account does not allow calendars to be added or removed

Usecase When I am trying to create a new Calendar programmatically using the EventKit API …

Advertisment ad adsense adlogger