Maybe I'm missing the point, but you can set the keyboard type in the storyboard settings for it.. Or do you need to change it programmatically for some particular reason?
Op Mar 13, 2013, om 6:51 PM heeft Alex Zavatone <z...@mac.com> het volgende geschreven: > 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 (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/diederik%40tenhorses.com > > This email sent to diede...@tenhorses.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com