Re: Enabling UISearchBar cancel button?

2017-01-23 Thread Kyle Sluder
On Wed, Jan 11, 2017, at 10:17 PM, Rick Mann 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

Re: Enabling UISearchBar cancel button?

2017-01-12 Thread Gary L. Wade
Your experience mirrors my own. Look at what I wrote, and you should be closer to your goals. I was also using a customized refresh control, and it appears sufficiently correct when pulling, between the search bar and collection view. You might need to adjust some values for your needs,

Re: Enabling UISearchBar cancel button?

2017-01-12 Thread Rick Mann
I need my search bar to appear under the nav bar. We also have an extra view outside and above the collection view. On top of that, I don't create a new view for the results, but rather use the existing view. Once the user selects an item that causes a push, and then goes back, everything is

Re: Enabling UISearchBar cancel button?

2017-01-12 Thread Gary L. Wade
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)

Enabling UISearchBar cancel button?

2017-01-11 Thread Rick Mann
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