tags:

views:

856

answers:

3

I'm trying to show in the screen a table...

Basically I create a custom UITableViewController with the methods needed for the UITableView delegate and data source which is self since UITableViewController does it for you.

When I put it in the -initWithRootView: controller, and add the nav's bar view to the window it doesn't show! With debugging, the table is being created and all, but the delegate methods are never called!

Any ideas?

A: 

Have you tried manually calling -reloadData on the table memory of your controller? This will, if everything's hooked up, call your delegate/datasource methods. If that doesn't do anything, (a) something's not hooked up right, or (b) you're not loading your controller properly.

Ben Gottlieb
A: 

I created the table and added the tableView property directly to the window instead and it worked. I don't think adding reloaddata would make it work since this controller does it automatically. Something is not correct when adding it as a rootviewcontroller to the navigation bar controller probably!

A: 

New problem, I'm trying to set a background image to a tableview ( which is the UITableView added as a subview of the view property of a view controller )

the bg image shows, but parts of the table's rows/header bgcolor is black and blocks the bg image... i've tried modifying all background properties of all views and still nothing.

suggestions?