简体   繁体   中英

iOS UITableView Default swipe delete button not showing when i swipe the cell

UITableview default swipe delete button was not showing .........

i put the following methods for default swipe delete ....

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{
   return YES;
}

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
(............)
}  

My Mac was newly purchased one...

The swipe delete button is showing and also working in my friends Mac which was purchased before one year ... But In My Mac Swipe is working but the delete button is not showing......

您应该通过Storyboard为UITableView应用自动布局约束。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM