J'ai une classe songsData dans ce que je suis l'analyse d'un objet json et en ajoutant les objets de la chanson à un tableau et plus tard, ce tableau d'objets dans un viewcontroller de atabbarviewcontroller. lors de l'accès à son affichage o objets dans tabbarcontrollerComment définir le tableau d'objets d'une classe à un contrôleur dans tabbarviewcontroller
comment gt ce tableau dans le viewcontroller d'un contrôleur de tabulation.
grâce
in songsData.m
-(void)loadData{
OnAirViewController *oAVC = [[OnAirViewController alloc]init];//the view controller in Tabbarcontroller
oAVC.songs = [self parsingTheJson:@"http:....."];
NSLog(@" count..%d",[songs count]);//gives 153
}
dans onAirViewController .. son donnant
NSLog(@" count..%d",[songs count]);//gives 0