2

I am creating a custom camera and want to lock the camera controls to the bottom of the phone at all orientations

i.e. Portrait Orientation has control toolbar at bottom, Landscape Orientation has control toolbar on the left

I have been playing around with constraints and setting them for certain width/height aspects but it always rotates. Any suggestions?

Portrait: enter image description here

Landscape: enter image description here

JimmyJammed
  • 9,598
  • 19
  • 79
  • 146

1 Answers1

2

So I ended up locking the view to portrait orientation, then just transforming the text (I think this is how apple does it).

See this answer for transforming text: Objective C: How can you rotate text for UIButton and UILabel?

Community
  • 1
  • 1
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146