Constraints to TopLayoutGuide
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