• 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: Alex Zavatone <email@hidden>
  • Date: Mon, 01 Feb 2016 19:06:15 -0500

On Feb 1, 2016, at 5:42 PM, Rick Mann <email@hidden> wrote:

> I've got a UISearchController that I present (presentViewController) as a result of the user tapping a button. When this hapens, the currently-display UINavigationBar slides up off the top of the screen, and the UISearchBar slides down, but it overlaps the status bar.
>
> None of the answers on coming up in a google search seem to work or be the right way (e.g. setting edgesForExtendedLayout to .None, or actually adjusting the offset in the delegate; that seems terrible).
>
> Is there a "correct" way (that also works)?
>

iOS?  Mac OS?

What is the parent view of the UISearchBar?

How are you adding it to the parent view?   There are some obscure settings on iOS in the Navigation controller that seriously affect the offset of content if you’re displaying a nav bar.

I’ll look up my code when I had to deal with this 3 years ago, hopefully, it will still work.

Cheers.


_______________________________________________

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: Rick Mann <email@hidden>
References: 
 >UISearchBar covers status bar (From: Rick Mann <email@hidden>)

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