Reputation: 837
I want to place black UIView at the bottom in the both of 3.5" and 4" screens using AutoLayout.
I added bottom constraints on the black UIView, but the view was always hidden in 3.5" screen.
I will never use AutoLayout in next project, but in current project, how can I fix it?
Following is parent view's constraints.
Upvotes: 1
Views: 1204
Reputation: 959
Edit: Select black view press add new constraint button check height and click only buttom constraint and add these two. After that press add missing constraints button. It should solve your issue.
Upvotes: 6
Reputation: 119031
By the looks of things it is the constraints on the superview that are the issue. This looks to result in the superview being too high on a 3.5 screen.
Check the superview constraints and ensure that:
Check the 'document outline' and see if it lists any layout issues - correct them. Each view needs to tell the layouting system where is should be placed and how big it should be.
p.s. you should use auto-layout in your future projects
Upvotes: 1