A constraint defines a relationship between two attributes of user interface objects that must be satisfied by the constraint-based layout system. Available in iOS 6.0 and later.
0
votes
1answer
12 views
Equally distribute spacing using Auto Layout visual format string
Is it possible to equally distribute left and right space for b in @"|-[a(5)]-[b(8)]-[c(5)]-|" using visual format strings?
1
vote
1answer
27 views
How can I make it so if I fade my navigation bar out, then actually hide it programmatically, that if I undo this there's no timing issues?
Long story short, I have a view controller where the user can tap on self.view (anywhere but the nav bar) and it will enter a full screen mode where the controls at the bottom fade out and the ...
1
vote
4answers
60 views
UITableView dynamic size
In my main view I have a header (label) and footer (button). In the middle there is a table. Table takes data from MutableArray so number of table items is different each time.
Before and behind a ...
2
votes
3answers
20 views
How do I make a constraint to position my label from the top, but not have it move when I hide the navigation bar (as it adjusts height of view)?
Long story short, I want to position my UILabel so that it's, say, 150pt from the top of the screen. This allows it to be a good distance from the top on both a 4" iOS device or a 3.5" iOS device.
...
0
votes
1answer
15 views
Toggling Auto Layout constraints - possible?
Is it possible to toggle Auto Layout constraints, so one can be enabled under certain circumstances, but that one can be disabled and another can be enabled under a different circumstance?
4
votes
1answer
27 views
Combining NSLayoutConstraints with CALayer backed views does not animate correctly
I have an auto layout setup with an animation that alters a NSLayoutContraint constant value
// set the slide in view's initial height to zero
self.adViewHeightConstraint = [NSLayoutConstraint ...
0
votes
1answer
33 views
how to get auto layout to work in Xcode
I looked into http://developer.apple.com/library/ios/#recipes/xcode_help-interface_builder/articles/UnderstandingAutolayout.html but the explanations are pretty vague.
I'm on iOS 6. I have a view ...
1
vote
1answer
40 views
NSLayoutConstraint subviews won't autoresize to fit container view
I have a simple layout where there is a containerView that starts on the entire screen. Inside, I have two vertical subviews — topView (green), botView (orange) which need equal heights and should ...
0
votes
1answer
20 views
Autolayout with overlapping views
I've two views (Text/Image) where one covers the total width of the screen, the other one is an image which sits in lower right corner of the text view.
Up to now I was not able write layout ...
0
votes
1answer
16 views
Change constraint value in function of screen size
I have 6 buttons UI like the following example:
All is perfect with non retina and retina 3.5", however, with 4" retina I have such UI:
What I think of solution is to change height constraint of ...
0
votes
2answers
43 views
Resizing UIView with autolayout when placed below a fixed size UIView
I am using autolayout with this layout:
self.view with frame (0,80, 320, 488)
collectionView with frame (0,0,320,220)
underView with frame (0,220,320,268)
and trying to achieve an animation ...
1
vote
1answer
39 views
UIStoryboard how to replace constraints programmatically?
I have a view controller laid out in a storyboard with autolayout enabled and am looking for a way to change constraints to allow for my view to rotate into landscape and rearrange buttons on the ...
3
votes
0answers
52 views
FlyoutNavigation - Views using NSLayoutConstraints Fail to Properly Draw View on First Use
Cross-posted here and on github, https://github.com/Clancey/FlyoutNavigation/issues/29.
I have an odd behavior I'm trying to track down, and I'm not sure if it is FlyoutNavigation or something else ...
1
vote
1answer
24 views
Where are the NSLayoutPriority constants in MonoTouch/Xamarin.iOS
I'm trying to find these constants in Xamarin.iOS currently - but can't find them.
enum {
NSLayoutPriorityRequired = 1000,
NSLayoutPriorityDefaultHigh = 750,
...
1
vote
0answers
67 views
Determine NEW Frame of Navigation Bar BEFORE actually rotating - iOS
I am using a a translucent Navigation Bar and Status Bar and my View Controller wants full screen. Thus, my View Controller's View extends under the Nav and Status bars and takes the full size of the ...