Leonardo
Leonardo

Reputation: 1750

Use autolayout to position view on home button's side

I'm trying to use auto layout to position a view on the Home button's side of the device, independent from it's orientation.

My question is, can this be achieved through auto layout? And if yes, how?

Upvotes: 0

Views: 33

Answers (1)

Sahil Kapoor
Sahil Kapoor

Reputation: 11803

No, you can't if you are supporting more than one orientation. You can add add the view to desired position using code and change the frame in viewWillTransitionToSize.

Upvotes: 1

Related Questions