• 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
Constraints to TopLayoutGuide
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Constraints to TopLayoutGuide


  • Subject: Constraints to TopLayoutGuide
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 04 Jan 2014 22:58:38 +0700

I have a xib which contains a view which has some items, the top one being a UISearchBar.
In Xcode 5.0.2 I used AutoLayout to pin the top of the SearchBar to the top of the View (the only thing Xcode offered me)

The problem: the ToolBar overlapped the SearchBar.

Programmatically I had to remove this LayoutConstraint:  V:|-(0)-[UISearchBar:] (Names: '|':UIView:) and replace it with: V:[_UILayoutGuide:]-(0)-[UISearchBar:] .

Having done this (in viewDidLoad) the ToolBar no longer overlaps the SearchBar.

But this is kind of tedious and I would like to know: can this be done in Xcode? Pinning the top of the SearchBar to the bottom of the TopLayoutGuide?

Gerriet.



 _______________________________________________
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: Constraints to TopLayoutGuide
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Strange problems using std::string and C++0x
  • Next by Date: Re: Constraints to TopLayoutGuide
  • Previous by thread: Re: Calling fopen() from a simple C++ program in Xcode 5.0.2 raises EXC_BAD_ACCESS, code=2
  • Next by thread: Re: Constraints to TopLayoutGuide
  • Index(es):
    • Date
    • Thread