Good day,
I am trying to select a drop down item from a form field in a PDF.
I notice the choiceFormViewController is invoked to display the items in a TableView on iOS.
However choiceFormViewController has no didSelectRowAtIndexPath method declared.
After declaring it I noticed the method was never called.
Some research revealed I cannot have a UITapGestureRecognizer on top of a TableView because it cancels the table actions.
Seemingly a common problem, most suggestions were to set [gestureRecognizer setCancelsTouchesInView:NO];
However, this had no effect either when declared immediately after gesture initialization, before and after view controller initialization or display. Leading me to believe this might not be the problem.
This is the code I added to ChoiceFormViewController.m:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *selectedCell = [tableView cellForRowAtIndexPath:indexPath];
NSLog(@"selected index : %@", indexPath);
NSLog(@"selected text : %@", selectedCell.textLabel.text);
}