Skip to content

Instantly share code, notes, and snippets.

@zacharyc
Created December 27, 2013 02:34
Embed
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,
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