• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
KeyboardType for an iOS searchBar.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: KeyboardType for an iOS searchBar.
      • From: Diederik Meijer | Ten Horses <email@hidden>
  • Prev by Date: Re: Another Gnarly Objective-C Question!
  • Next by Date: Re: Another Gnarly Objective-C Question!
  • Previous by thread: Moderator - Re: Objective-C Question
  • Next by thread: Re: KeyboardType for an iOS searchBar.
  • Index(es):
    • Date
    • Thread