26 Nov '14, 5pm

Input Accessorizing with UIViewController

Input Accessorizing with UIViewController

When designing a user interface that accepts and displays text input, a common pattern is to have a text field persist on screen. As the only control in the view, it is immediately clear how to enter text and have it displayed. It doesn’t hurt that Apple has been training users to accept this pattern for years in Messages.app. In iPhone OS 3.2, this type of persistent view that is anchored to the keyboard became officially supported with the addition of inputAccessoryView to UIResponder . The documentation for this method encourages subclassing to support custom input accessory views. The default value of this property is nil. Subclasses that want to attach custom controls to either a system-supplied input view (such as the keyboard) or a custom input view (one you provide in the inputView property) should redeclare this property as readwrite and use it to manage their cus...

Full article: http://robots.thoughtbot.com/input-accessorizing-uiviewco...

Tweets