- (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