I'm implementing the methods in the Core Data sample for iPad you sent, and all is working well, but some of my customizations are not working. Using delegate methods for cells (as noted in other posts works ok but for the life of me I cannot get the tableview background transparent. any changes to the tableView in IB are overridden it seems, and programmatic control is compiling but do nothing.
This is the steps so far: in my app delegate I create a background image and assign it as a subview of the window, thus:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
UIView *backgroundView = [[UIView alloc] initWithFrame: window.frame];
backgroundView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myAppBG.png"]];
[window addSubview:backgroundView];
[backgroundView release];
//[window addSubview:self.navController.view];
[window makeKeyAndVisible];
return YES;
}
Note that the navController is disabled; this is to confirm that the image is placed and sized as a backdrop properly. This works ok. Uncommenting the navController then lets the RootController do it's thing and overlays the backdrop. Now, the trick is to make the background of the section tableView transparent; I have tried variants of this code in the RootController's viewDidLoad:
// Init the tableViewModel
tableViewModel = [[SCTableViewModel alloc] initWithTableView:self.tableView withViewController:self];
self.tableView.backgroundColor = [UIColor clearColor];
SCArrayOfObjectsSection *projectSection = [SCArrayOfObjectsSection sectionWithHeaderTitle:nil withEntityClassDefinition:projectDef];
projectSection.addButtonItem = self.navigationItem.rightBarButtonItem;
[tableViewModel addSection:projectSection];
Neither this code, variants, or tweaking the tableView in IB that is wired to the controller seems to work.