Re: Enabling UISearchBar cancel button?
Re: Enabling UISearchBar cancel button?
- Subject: Re: Enabling UISearchBar cancel button?
- From: "Gary L. Wade" <email@hidden>
- Date: Thu, 12 Jan 2017 08:52:43 -0800
In what way is its controller getting in the way? Those do a lot together. If used with a collection view, you might find my solution helps:
https://whatweretheythinkingblog.wordpress.com/2016/11/19/effectively-using-uisearchcontroller-with-uicollectionview/
--
Gary L. Wade (Sent from my iPad)
http://www.garywade.com/
> On Jan 11, 2017, at 8:17 PM, Rick Mann <email@hidden> wrote:
>
> 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