Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2013 02:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
- (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,
[cell addSubview:editView];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment