2012-09-04 43 views
1

我在使用UITableView的iPhone應用程序中工作。我在UIViewController子視圖UITableView中添加了編輯選項。當用戶swipe the screen the Delete button is showing在這種情況下,我已經將barbutton項目'編輯'更改爲'完成'。在這種情況下,我跟蹤了從下面的代表控制,如何使用刷卡iphone應用程序控制UITableView編輯?

- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath 
-(void) tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath 

但是,當用戶再次刷卡鑑於「刪除」按鈕是隱藏,但我不能觸發控制。所以我不能將barbutton項目「完成」更改爲「編輯」。你能幫我解決這個問題嗎?在哪裏我可以觸發滑動控件來隱藏'刪除'選項?提前致謝。

回答

1

請問這項工作?:你的回答

- (void)tableView:(UITableView *)tableView didEndEditingRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    // update button title here 
} 
+0

謝謝。這是工作的魅力。再次感謝。 – Gopinath

相關問題