UIDataView selection not posted back
<p>I am a new to iPhone programming and struggling hard to get answer to a basic issue. I have created a single row UITableview on a UIView and want cell click to redirect to another UITableView screen to select one of the available values. All goes fine, till the select on select view, but after clicking back button the new selected value is not reflected. I am using this code</p>

<p>On my Calling View</p>

<pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // open a alert with an OK and cancel button
    UIViewController *nextViewController = nil;
    nextViewController = [[CategorySelectionView alloc] initWithStyle:UITableViewStyleGrouped];
    ((CategorySelectionView *)nextViewController).category = parentCategory;
    [self.navigationController pushViewController:nextViewController animated:YES];
    [nextViewController release];//break;

}

On selection View

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    // If there was a previous selection, unset the accessory view for its cell.
    NSManagedObject *currentCategory = category;

    if (currentCategory != nil) {
        NSInteger index = [categoryTypes indexOfObject:currentCategory];
        NSIndexPath *selectionIndexPath = [NSIndexPath indexPathForRow:index inSection:0];
        UITableViewCell *checkedCell = [tableView cellForRowAtIndexPath:selectionIndexPath];
        checkedCell.accessoryType = UITableViewCellAccessoryNone;
    }

    // Set the checkmark accessory for the selected row.
    [[tableView cellForRowAtIndexPath:indexPath] setAccessoryType:UITableViewCellAccessoryCheckmark];    

    category = [categoryTypes objectAtIndex:indexPath.row];

}
</code></pre>

<p>This is an extract form Apple developer Recipe code but is not working for me. Any help would really be appreciated. Also if I could be redirected to examples of using tableView screen as selector, would be equally helpful. Look forward to your help</p>
