Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chrono1081

macrumors G3
Original poster
Jan 26, 2008
8,811
5,751
Isla Nublar
Hi guys,

I have a dilemma and haven't seen it mentioned anywhere online. I have a form and the users of the iPad app I'm making want to tab through this form (the iPads all have keyboard cases) and they want the buttons to be selected by the tab key. Is this even possible?
 
The usual way to navigate with the keyboard is with next/previous buttons added to the top of the keyboard. Of course this usually is navigating from one text field to the next. You could possibly have both next/previous and tab navigation, although I don't see the benefit of tab key navigation since the built-in keyboard has no tab key.

I'm not sure what buttons you mean to be selected. If you mean regular UIButtons you might be able to change the appearance of a button to make it look selected and then do the button's action if the Return key is tapped. UIControls have (I think) three states and buttons only use two of them usually. You can use the third state to change the buttons' appearances. Or you could change the background color or something or add some kind of selection ring around the button to make it appear selected.

I doubt I've ever seen an app do this but maybe it might be OK. Depending on how it looks there might be some chance that Apple would reject it, but I really have no idea on that.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.