我有一个有几行的 TableView。选择一行时,我需要执行选择器。我做这样的事情:
[TTTableTextItem
itemWithText:NSLocalizedString(@"Cash","Title:Cash")
URL:[NSString @"tt://payment/add/%d",5]
accessoryURL:[NSString stringWithFormat:detail,5]],
并声明:
.....................
TTURLMap* map = [TTNavigator navigator].URLMap;
[map from:@"tt://payment/add/(source:)" toObject:self selector:@selector(addPayment:)];
.....................
- (void) addPayment:(PaymentType)theType {
ALog(@"%ld",theType);
}
但是,theType 总是得到 0。那么,我怎样才能传递参数呢?