Q: Property of int,bool,nsstring,idexpath I had declared Property of int in the .h class like:
@property (nonatomic) int  selectedIndex;

The issue is when I switch to another class and come back to my tableview, the value of selectedIndex get lost.I want to save the selected value in selectedIndex?
Help me guy where I had done mistake in property Declaration?
In the didSelect function I an storing the value:
 -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{

     selectedIndex = (int)indexPath.row;
     [tableView reloadData];
     myTimeSlot=[timeSlot objectAtIndex:indexPath.row];


}  

And in cellForRowatIndexPth I am retrieving It,Like:
if(indexPath.row == selectedIndex)
{
    cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
else
{
    cell.accessoryType = UITableViewCellAccessoryNone;
}

Everything is fine in same class but when I navigate to another class,My value lost....???
