Re: UISearchBar covers status bar
Re: UISearchBar covers status bar
- Subject: Re: UISearchBar covers status bar
- From: Alex Zavatone <email@hidden>
- Date: Tue, 02 Feb 2016 13:12:54 -0500
Oh, it slides down another view.
It looks like it modally presents a view controller over the current view and slides down the view with the search bar and segmented controller.
Look at it. If you tap on any element in the bottom bar, search immediately disappears up and the white background fades away to display the view behind it.
I'll bet this is a crafty use of a modal controller.
And if I'm wrong, you could take the approach that alertViews take. They present themselves in another window entirely and ride above all the content below.
On Feb 1, 2016, at 11:21 PM, Rick Mann wrote:
>
>> 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