Thursday, 26 April 2012

know which cell is selected when button clicked in cell and load that perticular cell

    UITableViewCell *clickedCell = (UITableViewCell *)[[sender superview] superview];
    NSIndexPath *indexPath = [tblMyCard indexPathForCell:clickedCell];
    int section = indexPath.section;
    int row = indexPath.row;


// code for load particular cell in table
NSArray *indexPathArray = [[NSArray alloc] initWithObjects:indexPath, nil];
[tableView reloadRowsAtIndexPaths:indexPathArray withRowAnimation:UITableViewRowAnimationFade];

No comments:

Post a Comment