Hello,
I am trying to implement and options menu (scene) using a UITableView in conjunction with a UINavigationController. I have search through countless sites, but to now avail for what I want to do. Its weird because I can get the table view to display, but it won't show the title at all. For example, I want to say "Root Level". Typically, that is done int the viewDidLoad method of the tableView controller. For whatever reason it won't work. I also try to place this information into a scene, but that doesn't work either. I am really lost. Here is some of my code. Also, I have typically implemented a UINavigationController in the app delegate. Will that still work, or should I implement it in my scene where I am creating my tableView.
@interface OptionsRootController : UITableViewController <UITableViewDelegate, UITableViewDataSource>
{
NSArray *controllers;
NSString *theTitle;
}
@implementation of OptionScene
(OptionScene is a property on my application delegate and is being run in applicationdidfinishloadingmethod)
-(void) onEnterTransitionDidFinish
{
OptionsRootController = [[OptionsRootController alloc] init];
OptionsRootController.theTitle = @"Ninja Clock";
[[[Director sharedDirector] openGLView] addSubview: [self.navigationViewController view]];
[[[Director sharedDirector] openGLView] addSubview:(UIView *) OptionsRootController.tableView];
}
I have the standard tableView methods that are needed to implement a table view.
My viewDidLoad method of OptionsRootController
-(void)viewDidLoad
{
self.title = theTitle;
NSMutableArray *array = [[NSMutableArray alloc] init];
[super viewDidLoad];
}