I know some have already asked the question but so far, the answers are not really specific.
Apparently apple have made the click area of the NavigationBar larger than it really is, but I don’t think it’s supposed to be that large.
In my app, there is a TableView right underneath the NavBar and you can click all the way down to half of the first cell to trigger the event of the rightBarButtonItem.
the button is instanced like this:
UIBarButtonItem *editButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit target:self action:@selector(editTable)];
[[self navigationItem] setRightBarButtonItem:editButton];
“self” is the root ViewController of a NavigationController.
As you could imagine, it’s a problem since the cells are selectable to push another ViewController.
I managed to go around the problem by making the cells’ height bigger but I’d rather have them at the regular size.
I’m sure I’m not the only one with this case of scenario.
Thanks in advance.
You can’t do much about the touch area. It’s all based on how much finger area is picked up by the display. You can calculate size of touch area (warning: undocumented api) but intercepting touch events and calling a method to correct for fat finger syndrome seems a bit over-the-top.
Basic process is: