Constructive view from xib as an example below

now make an IBOutlet from uiview in the .h file
IBOutlet UIView *accessoryView;
Connect this IBOutlet to your design presentation.
now in the .m file this view is set as editAccessoryView table cell
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease]; cell.editingAccessoryView = accessoryView; } } - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { return NO; }
now when scrolling your custom view, instead of the delete button will be displayed
source share