I was looking at adding a tab bar object to TheElements sample code, but was wondering how to do it. I am trying to make a tab bar object called "First", so I made some .h and .m files called "FirstTabController". A added the header file to TheElementsAppDelegate, and I declared it in TheElementsAppDelegate.m the following way:
Firstly, is this implementation all right?
In FirstTabController, I put the following code:
What else do I have to do in order to get my tab to display and just display a blank view?
Thanks in advance!
localNavigationController = [self createNavigationControllerWrappingViewControllerForDataSourceOfClass:[FirstTabController class]];
[localViewControllersArray addObject:localNavigationController];
[localNavigationController release];
Firstly, is this implementation all right?
In FirstTabController, I put the following code:
#import "FirstTabController.h"
#import "TheElementsAppDelegate.h"
@implementation FirstTabController;
- (NSString *)name {
return @"First";
}
- (NSString *)navigationBarName {
return @"First";
}
- (BOOL)showDisclosureIcon
{
return NO;
}
- (UIImage *)tabBarImage {
return [UIImage imageNamed"first.png"];
}
@end
What else do I have to do in order to get my tab to display and just display a blank view?
Thanks in advance!