tags:

views:

230

answers:

2

Looking to add a toolbar over UIKeyboardTypeNumberPad with a 'Done' Button. Has any one seen a good current tutorial? Is this the correct approach? Thanks.

A: 

In rough terms, you'll have a UITextField contained in a view controller. When you tap the field, it will become "first responder" and present a keyboard (you configure the type of the keyboard with the UITextField's text input traits). If your view controller is inside a UINavigationController stack, it'll have a top navbar already and you can specify a "Done" button there using a UIBarButtonItem.

Many of the iPhone Developer Center samples will be relevant, but I'd suggest starting with the UICatalog to get a better idea of how this is all handled.

You can also watch the Stanford iPhone Application Development course on iTunesU to get a solid foundation.

Kirk van Gorkom
+1  A: 

see this article : Programatically align a toolbar on top of the iPhone keyboard

HelloWorld