Let Say there was a working iPad app.
It has a TextField and a small button (arrow) at the end of the TextField. When ever the the small arrow is click, it should display the suggested options.(as UiPopOver)
The new requirement was , not only when the arrow button is clicked, even when the Textfield is touched, the popover should be shown over.
Method to show() in arrow button touchUpside event:
UIPopoverController activityPopover = [[UIPopoverController alloc] initWithContentViewController:activityViewController];
[activityPopover presentPopoverFromBarButtonItem:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
Method to hide():
[activityPopover dismissPopoverAnimated:YES];
What I did was very simple.
Added gestureevent to the text field and any single tap over it will trigger the arrow button click.
[button sendActionsForControlEvents:UIControlEventTouchUpInside];
but after adding the above piece of code, my app started crashing randomly.. I could not trace the pattern. I tried setting break point, but could not find anything. It just shows the interrupt SIGABRT and crashes. no log is written.
commenting the above code, it works fine.
I have no clue how to trace the issue.
Any help please?