2009-12-11 13 views

Odpowiedz

94

Są dwa możliwe zdarzenia po dotknięciu wiersza tabeli: wybór wiersza i widoku akcesoriów (zwykle akcja typu "więcej szczegółów").

Dopóki zarejestrowaniu delegata dla UITableView, następujące mogą być realizowane i będzie nazwany na dotyk:

// Tap on table Row 
- (void) tableView: (UITableView *) tableView didSelectRowAtIndexPath: (NSIndexPath *) indexPath { ... } 

// Tap on row accessory 
- (void) tableView: (UITableView *) tableView accessoryButtonTappedForRowWithIndexPath: (NSIndexPath *) indexPath{ ... } 
Powiązane problemy