Constraints are not working at Buttons with Images Xcode

Victor Lobe

today i have set up some constraints in a view but there looks awful. Which Constraints have i to add (see screenshots)

In XCode

In Simulator

rishu1992

If I have understood your requirement right, you need to have four images with labels below these individual images. If this is the case, you can use collection view whose cell contains a image view and a label. You can give the spacing between cells, size of cell and intercell spacing through delegates. Also just you need to specify image view and label constraints in collection view cell. Like for instance, image view placed horizontally centre and pinned to top of superview, label placed horizontally pinned to bottom of image view and top of label to give a gap between them.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

xcode buttons overlap despite constraints

From Dev

xcode buttons overlap despite constraints

From Dev

Xcode constraints not working as expected

From Dev

Xcode 6 Constraints with button images

From Dev

Xcode buttons/images always on top?

From Dev

Xcode 7 - Constraints - equal spacing between buttons

From Dev

Xcode 5 Toolbar Buttons Not Working

From Dev

Constraints to resize buttons to fit any screen - Xcode swift

From Dev

Some iOS constraints not working in Xcode 8 (after conversion to Swift 3)

From Dev

Xcode shows labels, buttons, navigation bar & images as pixelated

From Dev

iOS constraints: 4 Buttons

From Dev

Swift rounded buttons with constraints

From Dev

Adding constraints to buttons

From Dev

XCode 7 Autolayout Constraints: How to make 2 images stay horizontally in the center

From Dev

How do I use constraints / auto layout in Xcode's Interface Builder to properly scale images and fonts?

From Dev

iOS : xcode 5.1.1 icons and launch images screen not working

From Dev

Xcode Autolayout Constraints Confusion

From Dev

XCode: Stack view and constraints

From Dev

xcode 6 - red constraints

From Dev

Xcode constraints for specific layout

From Dev

iOS xcode constraints preview?

From Dev

Constraints not getting updated in xcode

From Dev

storyboard constraints (Xcode)

From Dev

Xcode constraints Stack Views

From Dev

Constraints in Xcode 8

From Dev

Constraints Overlapping, Swift Xcode

From Dev

Xcode Constraints issues

From Dev

Size-classes and constraints with buttons

From Dev

xCode 5.1 cannot select @2x images in storyboard for image views and buttons