views:

8

answers:

0

Hi,

In a class which inherits from TTViewController, I create an UITabBarController :

- (void)loadView
{
    [super loadView];
    YoutubeFeedViewController *y = [[YoutubeFeedViewController alloc] init];
    SourcesController *s = [[SourcesController alloc] init];
    tabBarController = [[UITabBarController alloc] init];
    tabBarController.viewControllers = [NSArray arrayWithObjects:y, s, nil];
    tabBarController.view.bounds = [[self view] bounds];
    [y release];
    [s release];

    [self.view addSubview:[tabBarController view]];
}

My YoutubeFeedViewController class implements the TTModel protocol to get remote data from Youtube via a TTListDataSource.

I have 2 problems with this code :

  • first : my TabBar is small, about 20 pixels height
  • second : my YoutubeFeedViewController is empty. No data is loaded. After debugging, I noticed that the createModel method is never called, and tableViewDidLoadModel (of my TTListDataSource derived class) is never called too.

When I display it without tabs, all data is loaded.

Do you have an idea ?

Thanks in advance.