Auto Layout is a constraint-based, descriptive layout system for OS X and iOS development.
0
votes
1answer
23 views
iOS - Testing User Interface (Auto Layout / Layout Constraints)
I am looking for best practices, advice, and insight on how to test a user interface that leverages layout constraints.
My view controller subclass is displaying "leaf-level" data - for sake of ...
1
vote
2answers
50 views
Use autolayout to set dynamic UIView to match container view
I have a UIView in IB that has another UIView within it, which I am using as a container view. In code, I create three different views and then animate the appropriate one into the container's view ...
0
votes
0answers
20 views
Dynamic uiview layout with auto layout
I'm working with autolayout and its been going very well so far but right now I am at lost as to the way to proceed to achieve the design I want.
I got a a small questionnaire with 2 sections. Each ...
0
votes
1answer
17 views
Evenly Space UIViews of equal sizes in superview using Auto Layout in iOS 6
I am in a need of having the series of buttons to be evenly placed in superview Horizontally using Auto Layout.
Here, I want to keep the sizes of the subviews same, only the center of the subviews ...
0
votes
2answers
41 views
How to do this simple thing with XCode's new Auto Layout feature?
Im trying to do something that seems like it should be a no-brainer. But alas, im too dumb to figure this one out. So i need help.
I have an iphone simulator (with a vertical orientation).
The main ...
0
votes
1answer
28 views
iOS UITableView override autolayout constraints programatically after setTableHeaderView
Okey so this is my dilemma atm.
I have a storyboard with a UITableView (tableView) and UIView (viewForTableHeader) that contains several other objects like a UIImag a label and such.
Programatically ...
0
votes
1answer
22 views
iOS >> Dragged View is Jumping Back to Original Position >> Auto Layout Combined with UIPanGestureRecognizer Issue
I have several UIViews that the user should be able to drag & drop. I use UIPanGestureRecognizer to manage the d&d action (see code below). The d&d action is working fine, but when I start ...
1
vote
3answers
29 views
Why does a constraint for the UIViewController.UIView to child UIViewLabel through error “Invalid pairing of layout attributes”?
I am trying to position a label so that the top of the label is 2/3 the way down the UIViewController. So I wrote this constraint, but it gives me the error below.
NSLayoutConstraint ...
0
votes
1answer
13 views
Can't make content resistance work in a table view cell
I have a UITableViewController that has a static field that displays a location.
The style this static field is "right detail".
The left side of the cell shows the city chosen by the user and the ...
1
vote
1answer
28 views
iOS Stretching View using Auto Layout in Landscape
I just started using Auto Layout for my upcoming projects. I created an UIImageView inside a UIScrollView like shown in the image below:
Auto Layout works as expected and positions the UImageView ...
0
votes
1answer
18 views
Center subviews horizontally with auto layout
I have two subviews, an UILabel and an UIImageView, which I would like to center in a view. They should be placed next to each other and together they should be in the center of their superview whose ...
0
votes
1answer
26 views
Autolayout a UIScrollView to fit content including subviews and grouped tables
I am trying to present information about an object grouped into sections. It may be long, so each section uses a view to visually separate the areas and it is all in a scroll view.
The first subview ...
1
vote
1answer
43 views
UIScrollView contentsize is reset to zero when using auto layout [duplicate]
I'm using autolayout to change the height of my scrollview. I add some subviews to the scrollview where I manually increment the content size. But when I get an event where I am about to change the ...
0
votes
1answer
16 views
IB - Dragging items into `scrollview` without repositioing?
I have unfortunately decided to make my app using the IB, which I discovered was a terrible choice, but I'm afraid I must deal with it.
So originally, I had all my fields, buttons, etc, placed on a ...
0
votes
1answer
25 views
How to create labels with dynamic size in iOS 6 with autolayout
I'm having trouble with autolayout and labels that get their text set in the source code based on some external conditions. These layouts (portrait and landscape) look like this on the simulator:
...