cellForRowAtIndexPath non appelé mais numberOfRowsInSection appelé

J'ai un problème simple, mais je ne peux pas comprendre ce qui est.
J'ai un UIViewControler (appelé RootController) qui charge un UIView (appelé SecondView) qui contiennent un tableView. Le problème est que le UIView appeler le numberOfSectionsInTableView et la numberOfRowsInSection mais ne l'appelez pas cellForRowAtIndexPath et la vue de la table n'est pas affiché.
Le code de la RootViewController est:

SecondView *secondView = [[seconddView alloc] initWithFrame:CGRectMake(0, 60, self.view.bounds.size.width, self.view.bounds.size.height)];
[self.view addSubview:secondView];

Et le code de la SecondView est:

@interface SecondView () <UITableViewDelegate, UITableViewDataSource>
@property (nonatomic,retain) UITableView *table;
@end

@implementation SecondView
@synthesize table;

- (id)initWithFrame:(CGRect)frame {
   self = [super initWithFrame:frame];
   if (self) {
   self.table = [[UITableView alloc] init];
   self.table.delegate = self;
   self.table.dataSource = self;
   [self addSubview:self.table];
   }
 return self;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  static NSString *CellIdentifier = @"Cell";
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if (cell == nil) {
     cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
     }
  cell.textLabel.text = @"Prova";
  return cell;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
   return 5;
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
   return 1;
}

Pouvez-vous m'aider à trouver le problème? Merci.

source d'informationauteur Anna565