Pergunta

using Xcode 4.3

I'm trying to toggle between text fields with a back and next tab in a UIKeyboardTypeDecimalPad keyboard. Can I add those to this type of keyboard? if so how?

Foi útil?

Solução

You can override the entire keyboard (will need to make your own number buttons, etc.) with the inputView property on a text field.

Or, you can use the normal UIKit keyboard and add your own accessory view with your own buttons on top of the keyboard with the inputAccessoryView property.

See this example project: https://developer.apple.com/library/ios/#samplecode/KeyboardAccessory/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009462-Intro-DontLinkElementID_2

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top