Tagged Questions
0
votes
1answer
26 views
Xcode constraints for specific layout
I'm trying to get a specific layout in Interface Build using constraints, but can't figure out the constraints I need. I'll try and demonstrate what I'm after using a diagram. I've got a header with a ...
0
votes
1answer
30 views
Bottom Space to: UIView Constraint
Boy am I lost with this one. I have two UIViews "TopView" and "BottomView". This is used to have a slide out menu when activated. I have a simply UILabel at the bottom of the page which has a ...
1
vote
1answer
35 views
Auto Layout view resizing frustrations when designing in Interface Builder
Problem: UIView size is "locked" when designing with Auto Layout in IB
I've uploaded a 20 second video that illustrates my problem, but let me describe it. You may recognize the project: it's right ...
2
votes
1answer
95 views
Auto-layout - how force other views to move to the position of hidden or removed view
I have designed my custom Cell in IB, subclassed it and connected my outlets to my custom class. I have three subviews in cell content which are: UIView (cdView) and two labels (titleLabel and ...
0
votes
2answers
86 views
How do I make my superview resize to match the size of its subviews with Autolayout?
I've got a UIView ("superview") that has a couple of UILabels as subviews, set up in Interface Builder. I've got Auto-Layout turned on to properly space all the labels in a list, one after another. ...
0
votes
1answer
31 views
how to stretch a uiview within a uiview in interface builder on orientation change?
In Interface Builder I have my main UIView however inside of this I have another UIView which acts as a header (different colour background and contains centered text whereas the main UIView behind ...
7
votes
1answer
73 views
Can autolayout layout this (diagram attached) automatically?
To support both portrait and horizontal for an UIView like this:
+-------------------+
| +---------------+ |
| | | |
| | Fixed | |
| | size | |
| | ...
1
vote
0answers
83 views
Views not laying out as expected with AutoLayout while embedding a ViewController
What I'm going for seems simple enough, but I can't get things to lay out how I'm expecting. I'm using AutoLayout to avoid hardcoding frames when taking into account different screen sizes. AutoLayout ...
0
votes
1answer
86 views
iOS equivalent for Android View.GONE visibility mode
I'm developing an app for iOS and I'm using the Storyboard with AutoLayout ON. One of my view controllers has a set of 4 buttons, and in certain circumstances i would like to make the first one ...
0
votes
1answer
46 views
Why my UITableView can't become longer, and resizing on the screen?
I use XIB to create the user interface of my application, I set the tableView which is
>= 350, I already set the Constraints, which is at less 350 px, if the UIVIew is higher, it will become ...
0
votes
1answer
26 views
Working with Interface Builder Constraints with 3.5 vs. 4 inch screen
I am having a problem with Auto Layout, specifically the spacing between two items. Here's what the app looks like on the 4 inch screen:
Here's what it looks like on the 3.5 inch screen:
And ...
0
votes
0answers
58 views
How to make autolayout change frame size to maintain constraints on rotation?
I have a UIView with very simple constraints, as the root view on a UIViewController:
This view has a single subview with all my UI elements in that subview.
Both views have ...
0
votes
0answers
53 views
Prevent view to layout Subviews
I've designed a UIViewController in a .xib file. It uses Autolayout.
I have in it a UISlider which change the text of a UILabel when its value change : I've linked the sent event "Value changed" to ...
0
votes
2answers
191 views
Calling `[UIView -systemLayoutSizeFittingSize:]` on a UITableViewCell always fails
I want to use auto-layout for UITableViewCells. These table cells have a dynamic height (depending on text length).
I'm using [UIView -systemLayoutSizeFittingSize:] to calculate the appropriate cell ...
0
votes
0answers
31 views
How to resize UIView based on constraints in IB
As this question points out, it's possible to resize a UIView added to a nib manually by setting its Size property to Freeform.
However, making that change does not appear to allow the view to resize ...