Skip to content

Instantly share code, notes, and snippets.

@zacharyc
Created December 27, 2013 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zacharyc/8141791 to your computer and use it in GitHub Desktop.
Save zacharyc/8141791 to your computer and use it in GitHub Desktop.
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.section == TIP_SECTION && indexPath.row == TIP_ROW) {
if (cell.userInteractionEnabled) {
[cell layoutSubviews];
UIView *editView = [self pencilView];
editView.frame = CGRectMake(cell.textLabel.frame.origin.x + cell.textLabel.frame.size.width + X_OFFSET,
cell.textLabel.frame.origin.y - Y_OFFSET,
editView.frame.size.width,
editView.frame.size.height);
[cell addSubview:editView];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment