• 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
Enabling UISearchBar cancel button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enabling UISearchBar cancel button?


  • Subject: Enabling UISearchBar cancel button?
  • From: Rick Mann <email@hidden>
  • Date: Wed, 11 Jan 2017 20:17:55 -0800

I'm creating and displaying a UISearchBar without using UISearchController (it gets in the way).

My UISearchBar is installed in the storyboard via IB. I animate it into position in my UI when the user taps a button. However, the Cancel button is disabled. I pre-load the search bar with the text of the last search, so the button should be enabled.

Before, when I was using UISearchController, it was enabled. Now it's not, until the user taps on it!

Any idea how to enable it? Thanks!

--
Rick Mann
email@hidden



_______________________________________________

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: Enabling UISearchBar cancel button?
      • From: Kyle Sluder <email@hidden>
    • Re: Enabling UISearchBar cancel button?
      • From: "Gary L. Wade" <email@hidden>
  • Prev by Date: Re: Refreshing Cocoa Bindings
  • Next by Date: Opposite of windowDidLoad
  • Previous by thread: Re: Refreshing Cocoa Bindings
  • Next by thread: Re: Enabling UISearchBar cancel button?
  • Index(es):
    • Date
    • Thread