Re: UISearchBar covers status bar
Re: UISearchBar covers status bar
- Subject: Re: UISearchBar covers status bar
- From: Rick Mann <email@hidden>
- Date: Mon, 01 Feb 2016 20:21:12 -0800
> On Feb 1, 2016, at 20:02 , Alex Zavatone <email@hidden> wrote:
>
>
> On Feb 1, 2016, at 10:50 PM, Rick Mann <email@hidden> wrote:
>
>>
>>> On Feb 1, 2016, at 19:47 , Alex Zavatone <email@hidden> wrote:
>>>
>>> Check out how I did it where the search bar is within the scene’s view and the scene’s view is the top level view. Hopefully, this will translate from iOS to OS X.
>>
>> Not sure why you keep suggesting OS X. This is iOS.
>>
>> The problem is the designers want it over the nav bar, not in the view.
>
> Sorry, I misunderstood.
>
> Create a custom nav bar subclass and add it as a property to the nav bar.
>
> Or do you mean status bar?
>
> In this case, isn’t it easiest to hide the status bar or make it transparent?
No, that moves too much stuff around. There's already a nav bar there, I just want the search bar to come down over it.
The Apple Music player app does exactly this, and it does it without presenting the search controller modally. I'm guessing it's not using UISearchController, but I can't figure out how to do what it does precisely. But it has the precise behavior I want.
--
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