0

XCode Version: 4.3.2 iOS 5.0

I am trying to set the background image for my TableViewController. I have a table already in the controller, just not sure how and where (which method to write the code in) to set the background image for this. Once I set it does anyone also know how to put the table at the bottom of the screen? If someone can outline the steps, i would be grateful.

Really appreciate some help!

Masterminder
  • 1,127
  • 7
  • 21
  • 31

1 Answers1

0

I do it inside the viewDidLoad method. For example so:

UIImageView *bgView = [UIImageView ....];
self.tableView.backgroundView = bgView;
[bgView release];
iMx
  • 846
  • 1
  • 9
  • 23
  • I have to release this in X Code 4.3.2? – Masterminder Jun 13 '12 at 17:39
  • thanks for the help it works! By any chance do you know how to move the table to the bottom of the screen? It is currently at the top . – Masterminder Jun 13 '12 at 17:57
  • @Masterminder what do you mean with the "bottom of the screen"? a UITableView fills normally the whole parent view. But i think, it should be an another question. Please accept my answer if it was helpful. Read the [FAQ](http://stackoverflow.com/faq) for more info! Thanks – iMx Jun 13 '12 at 18:08
  • When I Created the table, XCode Automatically places it at the top part of the screen, I want it to be shifted downwards so I can see the image in the background. Hope that is clear! – Masterminder Jun 13 '12 at 18:22
  • @Masterminder if you want, that your table cells come after the image, i would place the image not in the background of the whole table, but as table section or table header content (before the cells). If i understood what you want. – iMx Jun 13 '12 at 18:35