I have never tried, but such logic will work. Remember that you will not get any touch in the overlap area.
1) Add a subview to cell.contentView , make sure the subtask height is greater than the rowHeight your tableView.
float overlapHeight = 10.0; subView.frame = CGRectMake(0.0, -10.0, your_subview_width, rowHeight + overlapHeight);
2) Add this code so that your cell does not crop the content out of frame
cell.clipsToBounds = NO; cell.contentView.clipsToBounds = NO;
3) Now your cell will overlap, but there will be a click sign around the borders of the cell. To avoid implementing the delegate delegate function of Displayplay
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { cell.backgroundColor = [UIColor clearColor]; }
Krishnabhadra
source share