iOS Reference Library Apple Developer
Search

KeyboardAccessory

Last Revision:
Version 1.3, 2010-04-19
viewDidUnload now releases IBOutlets, added localization support.
(Full Revision History)
Build Requirements:
Xcode 3.2 or later, Mac OS X v10.6 or later, iPhone OS 3.2 or later
Runtime Requirements:
Mac OS X v10.6 or later, iPhone OS 3.2 or later

Shows how to use a keyboard accessory view. The application uses a single view controller. The view controller's view is covered by a text view. When you tap the text view, the view controller loads a nib file containing an accessory view that it assigns to the text view's inputAccessoryView property. The accessory view contains a button. When you tap the button, the text "You tapped me." is added to the text view. The sample also shows how you can use the keyboard-will-show and keyboard-will-hide notifications to animate resizing a view that is obscured by the keyboard.




Last updated: 2010-04-19

Did this document help you? Yes It's good, but... Not helpful...