I'm not sure how to implement the Table view inside my Tab bar App.
Bellow is the basic code for my tab bar app and after that is my functionnal code for my advanced table view app (but not yet inside a tab).
How do I change my App Delegate .h and .m ?
My Tab bar App
// File: AppDelegate.h
#import <UIKit/UIKit.h>
@interface AppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
UITabBarController *rootController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *rootController;
@end
// File: AppDelegate.m
#import "AppDelegate.h"
@implementation AppDelegate
@synthesize window;
@synthesize rootController;
- (void)applicationDidFinishLaunching

UIApplication *)application {
// Override point for customization after app launch
[window addSubview:rootController.view];
[window makeKeyAndVisible];
}
- (void)dealloc {
[rootController release];
[window release];
[super dealloc];
}
@end
AdvancedTableViewCells
// File: AdvancedTableViewCellsAppDelegate.h
@interface AdvancedTableViewCellsAppDelegate : NSObject <UIApplicationDelegate>
{
UIWindow *window;
UINavigationController *navigationController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
@end
// File: AdvancedTableViewCellsAppDelegate.m
#import "AdvancedTableViewCellsAppDelegate.h"
#import "RootViewController.h"
@implementation AdvancedTableViewCellsAppDelegate
@synthesize window;
@synthesize navigationController;
#pragma mark -
#pragma mark Application lifecycle
- (void)applicationDidFinishLaunching

UIApplication *)application
{
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}
#pragma mark -
#pragma mark Memory management
- (void)dealloc
{
[navigationController release];
[window release];
[super dealloc];
}
@end