Tagged Questions
Auto Layout is a constraint-based, descriptive user interface layout system for OS X and iOS.
3
votes
0answers
764 views
How to make UICollectionViewCell fit its subviews (using Auto Layout)
How can I change the size of a UICollectionViewCell based on the size of its subviews, using Auto Layout?
My UICollectionViewCells each only have one view in their contentView. This is a custom ...
3
votes
0answers
166 views
Autolayout of View Controller View in a Container
I have an NSWindow that has 2 container views within it, all in one xib, like so:
In another xib, I have a the view for the sidebar, managed by a different view controller, like so:
When I add ...
3
votes
0answers
66 views
Using AutoLayout makes UIView opaque
In Apple Developer's SquareCam sample code, in MainStoryBoard if Use AutoLayout is checked, the camera view doesn't remain transparent and we aren't able to see the object we intend to take a picture ...
3
votes
0answers
382 views
How can I animate NSSplitView collapse with auto layout
I have an interface designed as below set up with auto layout in the XIB.
[Left Pane]-[Center Pane]-[Right Pane]
[ Bottom Pane ]
Currently it supports max and min ...
3
votes
0answers
395 views
NSTableView's frame inside a NSClipView/NSScrollView using auto layout
I'm trying to create a NSTableView inside a NSScrollView (the standard configuration, that is) in code, using auto layout. I can't figure out how to make this work.
Here's my loadView:
- ...
3
votes
0answers
230 views
UITableViewCells scroll horizontally using auto layout when changing to portrait mode
I am creating a screen that is primarily a UITableView with cells that have differing controls and layouts. I had the tableview working great until I switched to portrait mode where it allowed the ...
3
votes
0answers
1k views
Resizing a cell with auto layout in iOS 6
Is there any way to resize a cell in UICollectionView when a device changes from portrait to landscape orientation? With the new iOS 6 auto layout? I don't want to reload the whole UICollectionView.
...
3
votes
0answers
154 views
How can I solve the AssertionFail when AutoLayout is turned on?
I am getting:
Assertion failure in -[Cell layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2372/UIView.m:5776
2013-01-06 14:58:42.951 Likely[4588:c07] *** Terminating app due to uncaught ...
3
votes
0answers
542 views
Can not get rid of autolayout! “Unable to install constraint on view”
I developed half my app with autolayout. Now I want to get rid of it. I only used it in the NIB. I disabled it in interface builder (the check box) but I keep getting this error:
* Terminating app ...
2
votes
0answers
29 views
Autolayout + UITableView generates phantom section headers on iOS 6
So I inherited a project with some code in it, that kind of behaves like iMessage.
There are two view here, the top one which goes from the navigation bar to the compose message one and the bottom ...
2
votes
0answers
32 views
Custom topLayoutGuide length in container view controller
Say for example, I have made a custom container view controller resembling a UINavigationController, but it has 2 navigation bars in the top.
Then, in child view controllers I use Autolayout, and I ...
2
votes
0answers
77 views
UITableViewCell with labels that dynamically appear/hide using Auto Layout
I have a UITableViewCell defined in a XIB with auto-layout enabled. It contains multiple UILabels, one of which often runs to more than one line. I am able to appropriately adjust the height of the ...
2
votes
0answers
48 views
Hiding the tabBar in a UITabBarController not changing bottom layout guide to the bottom of the screen
I am using autolayout in my project and I have a tableview in my view controller. So I have set its vertical spacing from the bottom of top layout guide and from the top of bottom layout guide to be ...
2
votes
0answers
57 views
Typing in one UITextField results in not being able to type in any other UITextField with a UIViewController, UIScrollView and AutoLayouts
I have a simple application with a view controller consisting off 3 UITextFields, a DatePicker and a Segment Control.
I have spent a ton of time getting my ViewController scrollable with AutoLayout ...
2
votes
0answers
58 views
Auto adjust view position when personal hotspot on and off
When personal hotspot gets turned on, the status bar height change from 20 to 40 points, the [[UIScreen mainScreen] applicationFrame] returned CGRect would change from ((0, 20), (screenWidth, ...