KeyboardType for an iOS searchBar.
KeyboardType for an iOS searchBar.
- Subject: KeyboardType for an iOS searchBar.
- From: Alex Zavatone <email@hidden>
- Date: Wed, 13 Mar 2013 13:51:24 -0400
Hopefully, this will be a more constructive question for the list.
On iOS in Xcode 4.2, I've put a storyboard scene together with a tableView and a searchBar.
The searchBar searches the tableView just fine, but my problem is how and when the storyboard defaults are applied to the searchBar and the resulting keyboard? I ask, because it appears that it's only possible to override the storyboard defaults to set the keyboardType within the searchBar:textDidChange: method and this seems really clunky.
I'm using the methods below and I've tried setting the keyboardType on the viewController's viewDidLoad, viewDidAppear, after notification from UIKeyboardDidShowNotification, nothing works to override the setting used in the storyboard except for searchBar:textDidChange:, which is not acceptable.
[searchBar setKeyboardType:UIKeyboardTypeNumbersAndPunctuation];
[searchBar reloadInputViews];
I'm extending the interface to use the UISearchBarDelegate. Is there anything obvious here that I might be missing?
TIA,
- Zav
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden