Search code examples
iphoneuitableviewuisplitviewcontrollerfooter

how to add footer Image to UITableView in RootViewController in splitViewController


I want to add footer Image at bottom of the TableView as we have the navigation bar image in SplitViewConroller but it does not get show it is showed when i scroll the table then it shows otherwise it does not show on screen here is the image i want same bar at bottom also which is in top in Table.

enter image description here

here is another image where when i scroll tableView then it shows image i want that without scroll it may show at bottom as top bar showing without scrolloing

enter image description here


Solution

  • Create an UIImageView with your image and add to tableFooterView like

    UIImageView *imView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image.png"]];
    tableView.tableFooterView = imView;