• 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
Re: UISearchBar covers status bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UISearchBar covers status bar


  • Subject: Re: UISearchBar covers status bar
  • From: Rick Mann <email@hidden>
  • Date: Tue, 02 Feb 2016 12:08:27 -0800

I'm also presenting it as a modal controller. I get the same behavior (with certain settings), except that the search bar doesn't accommodate the status bar; it's  tucked up under it.

Apple really screwed the pooch with the status bar change in iOS 7; I've had nothing but problems with it ever since.

> On Feb 2, 2016, at 10:12 , Alex Zavatone <email@hidden> wrote:
>
> 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
>>
>>
>


--
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: UISearchBar covers status bar
      • From: "Raglan T. Tiger" <email@hidden>
References: 
 >UISearchBar covers status bar (From: Rick Mann <email@hidden>)
 >Re: UISearchBar covers status bar (From: Alex Zavatone <email@hidden>)
 >Re: UISearchBar covers status bar (From: Rick Mann <email@hidden>)
 >Re: UISearchBar covers status bar (From: Alex Zavatone <email@hidden>)
 >Re: UISearchBar covers status bar (From: Rick Mann <email@hidden>)
 >Re: UISearchBar covers status bar (From: Alex Zavatone <email@hidden>)
 >Re: UISearchBar covers status bar (From: Rick Mann <email@hidden>)
 >Re: UISearchBar covers status bar (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: UISearchBar covers status bar
  • Next by Date: Re: UISearchBar covers status bar
  • Previous by thread: Re: UISearchBar covers status bar
  • Next by thread: Re: UISearchBar covers status bar
  • Index(es):
    • Date
    • Thread