2014-12-03 30 views
0

UITableView的默认刷卡删除按钮没有显示.........的iOS的UITableView默认刷卡删除按钮没有显示时,我刷卡细胞

我把默认刷卡下面的方法删除....

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

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

我的Mac是新买的一个...

挥击删除按钮显示在我的朋友的Mac也正在将其工作1年... 之前,但在我的Mac刷卡购买但删除按钮不显示......

+0

正确检查UITableViewDataSource连接。我认为你没有连接UITableViewDataSource。 – Monikanta 2014-12-03 07:36:40

+0

您正在使用的是哪个版本的Xcode。 ? – 2014-12-05 08:03:24

回答

1

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

+0

原来是我的问题!刚刚来到这里,为那些已经查看过属性和委托代码并且仍然存在问题的人们支持这种调试方式! – 2015-11-14 17:26:15