Mr Riksson
Mr Riksson

Reputation: 560

Borders around UIButton on iPhone 6 Plus

I'm working on a project where I want the UIButton to span across the width of the screen.

I've configured the constraints like this:

enter image description here

This works perfectly on all iOS devices except the iPhone 6 Plus. As seen on the image below the iPhone 6 Plus is the only device where it doesn't start from the edges of the screen.

enter image description here

How can I have the UIButton go from edge to edge on the iPhone 6 Plus too?

Upvotes: 0

Views: 80

Answers (1)

Ashish Kakkad
Ashish Kakkad

Reputation: 23882

Uncheck the Option Constrain to margins

Set left and right margin to 0.

Do as following screenshot.

enter image description here

Upvotes: 1

Related Questions