How to get selected cell frame from UITableView

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
CGRect selectedCellFrame = [cell.superview convertRect:cell.frame toView:self.view];

Advertisements

UITableView selection not working on 3.0 Beta

Looks like it is a problem with disabling scrolling on a UITableView:

tableView.scrollEnabled=NO; // Causes selection problems

tableView.scrollEnabled=YES; // Appears to fix it.

http://forums.macrumors.com/showthread.php?t=470266

Blogged with the Flock Browser