Skip to content

Instantly share code, notes, and snippets.

@mtsd
Created December 28, 2011 01:55
Show Gist options
  • Select an option

  • Save mtsd/1525789 to your computer and use it in GitHub Desktop.

Select an option

Save mtsd/1525789 to your computer and use it in GitHub Desktop.
タップされたcellのtableView上の位置
- (CGPoint)offsetOfCell:(UITableViewCell *)cell
{
// tableViewがどれだけスクロールされたか
CGPoint offset = self.tableView.contentOffset;
CGPoint point = cell.frame.origin;
point.x -= offset.x;
point.y -= offset.y;
return point;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment