Okay, so heres what I have found and am trying to implement.. I am just doing something small wrong and am wondering if you guys might see what it is that I am messing up.
Over at
http://developer.apple.com/library/...s.html#//apple_ref/doc/uid/TP40007451-CH7-SW1
I am working on the section called
The Technique for Static Row Content which explains how to create a similar effect to what I have pointed out earlier here
http://img340.imageshack.us/i/img0768.png/.
So far here is what I have done in my version.
Set up a window based application with xcode name it etc.
Inside myAppDelegate.h I have added a
Code:
UINavigationController *navigationController;
//....
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
then inside myAppDelegate.m I have synthesized navigationController; and then added the coed to Override the normal view so its the navigation based.
Code:
//.....
@synthesize window;
@synthesize navigationController;
#pragma mark -
#pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[self.window addSubview:navigationController.view];
[self.window makeKeyAndVisible];
return YES;
}
//.....
From here I have added a new UIViewControllerSubclass called search with all files - .h/.m/.xib
I will post the code for these files below to try an minimize confusion
Search.h
Code:
//
// Search.h
// instaCode1.0
//
// Created by iMan on 29/03/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface Search : UIViewController {
UITableViewCell *cellCode;
UITableViewCell *cellManufacture;
UITableViewCell *cellModel;
}
@property (nonatomic, retain) IBOutlet UITableViewCell *cellCode;
@property (nonatomic, retain) IBOutlet UITableViewCell *cellManufacture;
@property (nonatomic, retain) IBOutlet UITableViewCell *cellModel;
@end
Search.m
Code:
#import "Search.h"
@implementation Search
@synthesize cellCode;
@synthesize cellManufacture;
@synthesize cellModel;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.section == 0) {
//Add two UITableViewCells to test UITables Grouping
return cellCode;
return cellManufacture;
}
// section 1
if (indexPath.row == 0) {
return cellModel;
}
}
//......
So from here I have opened interface Builder mainwindo.xib added a navigationController hooked everything up so that the first page that loads is my search.xib then I have opened search.xib and added three TableViewCell objects and customized each one how I want, then I have linked them to the objects I defined in search.h I have then added a UITableView, but this is where I get lost because by UITableViewCells are not loading into the UItableView with the method (tableView:cellForRowAtIndexPath

I have defined in search.m
Here is a screen capture of my Interface Builder Search.xib
http://img121.imageshack.us/i/screenshot20110329at433.png/
If you need more detail or you think I have missed something out let me know... This one has had me stumped for the past hour... It seems so simple but its just that I must be missing something small and basic.