2010-10-15 5 views
1

j'ai 2 boutons A et B à la fois l'affichage Tableview et données initialement mêmes données mais dans B il y a un bouton de recherche afin lorsque les données serach de tableViewB utilisateur change puis si je appuyez sur A alors je peux voir les données présentées dans B * mes données antérieures A est prioritaire par B * comment résoudre ces problèmes afin que je puisse voir mes anciennes données dans undeux tables vue gestion des données sur iphone

je l'ai fait 1) nom différent de sorties IB de tableview 2) a changé le nom identifiant de cellule mais pas sucess suggère de bien vouloir

Tableau A Code

- (UITableViewCell *)tableView:(UITableView *)tableView0 cellForRowAtIndexPath:(NSIndexPath *)indexPath { 
    //UITableView *tableView; 
    UITableViewCell *cell; 
    static NSString *CellIdentifier = @"Cells"; 


    //self.tableView.frame = CGRectMake(0,searchBar.bounds.size.height,320,480); 






    cell= [tableView0 dequeueReusableCellWithIdentifier:CellIdentifier]; 
    if (cell == nil) { 


     cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; 
     //cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 


#pragma mark BG image for tableView 


} 

Code Tableau B

- (UITableViewCell *)tableView:(UITableView *)tableview1 cellForRowAtIndexPath:(NSIndexPath *)indexPath { 
    //UITableView *tableView; 
    UITableViewCell *cell; 
    static NSString *CellIdentifier = @"Cell"; 


    //self.tableView.frame = CGRectMake(0,searchBar.bounds.size.height,320,480); 



    NSLog(@" what is the valuE%d",[appDelegate.books count]); 


    cell= [tableview1 dequeueReusableCellWithIdentifier:CellIdentifier]; 
    if (cell == nil) { 



     NSLog(@" table view cell value %d",[appDelegate.books count]); 
     cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; 
    // cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 

Merci

+0

Pourriez-vous s'il vous plaît poster le code pertinent? – AlcubierreDrive

Répondre

0

je me suis finalement résolu le problème ... concept est que je suis analyse syntaxique même xml et utilisais même thats tableau pourquoi la valeur était même, maintenant je l'ai fait deux différents analyseur XML et 2 tableau différent contenant des données séparément et ses fixes

Merci

Questions connexes