Question

With the new iOS 7 "flat" look, take for example the + button to add new items such as in iOS's Contacts app. In my app, the + is very hard to tap, the button size seems very small and was never an issue in iOS < 7 and now in iOS 7 it is an issue.

I looked at the Contacts app and if you experiment with it, notice how far left of the button you can tap and the button registers the tap. The same applies as I noticed in the iPad mail app above the e-mail item list, the Edit button for the UITableView also registers the tap far left of the word "Edit".

How can I improve tap-ability of buttons like this on either navigation bars or toolbars? Both of which are BarButtonItems. My main concern is the + button implementation but it looks like whatever technique Apple is using would be a good design to adopt to improve tap-ability of button items.

Thank you.

Was it helpful?

Solution

If you use UIBarButtonSystemItemAdd, you should be able to tap a fairly large distance away from the button. Here's a screenshot showing where I was tapping, and as you can see the button is pressed:

enter image description here

A button like this can be created using code like this:

[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addPressed:)]

You can also create one in interface builder:

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top