2014-12-03 36 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