two table view data management on iphone
<p>i have <strong>2 buttons A and B both display tableview</strong> and data <strong>initially same data</strong> 
but then in <strong>B there is a search button so when user serach tableViewB data changes</strong> and then if i <strong>press A
then i can see the data shown in B</strong> *<em>my earlier data A is override by B</em>*
how to solve this issues   so that i can see my old data in A</p>

<p>i did
<strong>1) 
different IB outlets name  of tableview
2) 
changed the Cell Identifier name</strong>
 but no sucess kindly suggest</p>

<p>Table A code</p>

<pre><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></pre>

<p>Table B code</p>

<pre><code>- (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];
</code></pre>

<p>Thanks</p>
