Questions tagged [ios-autolayout]

In iOS, Auto Layout dynamically calculates the size and position of all the views in your view hierarchy, based on constraints placed on those views.

In iOS, Auto Layout dynamically calculates the size and position of all the views in your view hierarchy, based on constraints placed on those views.

More info

1049 questions
-1
votes
3 answers

When I drag any objects into autolayout in xcode, it automatically goes fullscreen and I can't resize it

Is there a setting I accidentally checked that would force this behavior? Even button objects occupy the entire screen.
enfieldacademy
  • 241
  • 2
  • 9
-1
votes
1 answer

Custom UIView (with xib) autolayout width and pushing viewcontroller from delegate

I have problem with setting constraints to custom UIView and pushing new ViewController by delegate when I tap the view. I tried to find solution for these problems but couldn't find one that answers to these questions. Autolayout problem I have…
JHT
  • 1
  • 4
-1
votes
2 answers

Auto Layout Issues iOS

I have added an Imageview to my View.(Simulated Metrices Size:Iphone 3.5 inch). Constarints Added to the ImageView as follows: Horizontal Space -(-3) Horizontal Space Vertical Space - (141) Vertical Space - (67) Imageview Frame =…
-1
votes
1 answer

AutoLayout issue in iOS 7(works perfectly in iOS 8)

I have designed the app using auto layout. The screens are perfect in iOS 8 (according to the constraints). Base SDK is iOS 8. The deployment target is from iOS 7.0. Now when i run the same app in iOS 7. The screens behave strangely. The view will…
Julian
  • 29
  • 5
-1
votes
2 answers

iOS auto layout ios7 vs ios8

What exactly are the improvements in auto layout ios 7 and ios 8? My app is working fine in ios 8 but has different behavior in ios7. Constraints are breaking in ios 7 after loading views multiple times. I want to know what are the things that ios…
Ted
  • 22,696
  • 11
  • 95
  • 109
-1
votes
1 answer

AutoLayout: position of subview proportional to parent view

Let's supose I have a UIImageView at y=10 while the screen is height:100. What constraints do I have to set if I want the image to be always for example at y:10% of the parent? Parent height:100 - UIImage y:10 Parent height:200 - UIImage…
jobima
  • 5,790
  • 1
  • 20
  • 18
-1
votes
1 answer

Autolayout design accommodating iPhone 3.5 inch and iPhone 4 inch screen size

I'm creating an universal app. Now I want to place two buttons on the screen: I tried it with autolayout and Interface Builder (iOS Designer exactly) but I only managed to fit the buttons on one screen size (e.g. 3.5 inch display). Therefore I set…
testing
  • 19,681
  • 50
  • 236
  • 417
-2
votes
1 answer

Containerview inside scrollview not scrolling

The stack of my views is this: superView -scrollview = CONSTRAINTS(leading: superView, trailing: superView, top: superView, bottom: superView) --view = CONSTRAINTS(leading: superView, trailing: superView, top: superView, bottom: superView,…
AJ Seraspi
  • 113
  • 1
  • 14
-2
votes
1 answer

'A' character after a UI button in tableView cell?

I just change the height of UIImageView of tableView custom cell in my app to match with bigger screen iPhones. And I found a weird behavior that a 'A' character after the 'Plus' button as below screenshot showed, which is not exist before. Can't…
Zhou Haibo
  • 1,681
  • 1
  • 12
  • 32
-2
votes
2 answers

Auto-layout is not working in case 1 label is shown, but works with 2 labels

The label gets expanded outside of its container when it's the only within the container's view hierarchy. In case there are 2 labels, it works fine and both labels are staying within the container view. My real use case is more complicated but I…
-2
votes
3 answers

Autolayout constraints with boundary conditions

I have the following setup Top View | | LeftView -- MyView --- RightView | | BottomView I want MyView to have largest possible frame with aspect ratio 1:1 and should…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
-2
votes
2 answers

How to position view.top to super.bottom with AutoLayout?

I'm working on my first iOS application, I want to position the top of a view at the bottom of an other one. How can I do it please?
-2
votes
1 answer

how to set eight uilabel in one uitableviewcell with same width using auto layout

After searching and applying many result I have no desired solution for my problem. How can I Set label so I can display all label with same font size in tableview cell. I need to display 5 label and 2 button in one tableview cell in…
riddhi
  • 316
  • 2
  • 16
-2
votes
3 answers

Swift auto layout with storyboard

I have a view divided in 5 pieces with 4 lines (which are views too with a height of 1). I am making my swift app responsive with different apple devices sizes but the problem is that the y position of the small views is not changing with the device…
-2
votes
6 answers

Autolayout subview add issue in Swift 4

I am trying to add a subview into fullscreen parent view, but it does not show up in full parent view. If I don't init or don't set it inside frame, it does not show up
s60
  • 37
  • 2
  • 7
1 2 3
69
70