• 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: my search bar doesn't go all the way up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: my search bar doesn't go all the way up


  • Subject: Re: my search bar doesn't go all the way up
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 03 Feb 2015 17:29:41 -0500

Let's start from the beginning.  How are you adding a search bar to the XIB?  Is it in a view and next to your table view, or is it in a table view?





Sent from my iPad. Please pardon typos.

On Feb 3, 2015, at 5:07 PM, Donald Hall <email@hidden> wrote:

Hi all,

I am implementing a search bar as a table view header in my universal (iPhone/iPad) app. The table view is inside a navigation controller. What I want to do is mimic the behavior of Apple’s ‘Messages’ app for my search bar. However, I can’t seem to figure out how to do it despite lots of research (Stack Overflow, this list, Google).

On the phone when you tap in the search text field in Messages everything moves up so that the search bar is just under the status bar and the status bar background turns gray (same color as the search bar). In my app everything moves up but the status bar background remains its original white color. This looks okay, just different, but I suspect is linked to the problem below.

On the iPad in Messages the behavior is the same. The status bar background above the list of messages turns gray when you tap in the search field. In my app on the iPad the navigation controller is inside a split view controller (which appears to be the case for Messages). Here when I tap in the search text field everything moves up, but the navigation bar text also moves up and is partly visible under the status bar, which retains its original color. The search bar looks to be snug against the status bar, the navigation bar text (title etc) seems to have invaded the status bar.

Can anyone tell me what is going on? How do I get the status bar to turn color (and hide the navigation bar text on the iPad). This is an older project and uses xib files. Is there some setting in the xib file to choose?

Thanks for any pointers,

Don

------------
Don Hall
Apps & More Software Design, Inc.
http://www.appsandmore.com
email@hidden
Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: my search bar doesn't go all the way up
      • From: Donald Hall <email@hidden>
References: 
 >my search bar doesn't go all the way up (From: Donald Hall <email@hidden>)

  • Prev by Date: my search bar doesn't go all the way up
  • Next by Date: Re: Is PackageMaker still useful for non-Mac-App-Store
  • Previous by thread: my search bar doesn't go all the way up
  • Next by thread: Re: my search bar doesn't go all the way up
  • Index(es):
    • Date
    • Thread