2

I have an extra UIView object that I just dragged onto the storyboard. It covers the entire iPhone screen. So I clicked on it and dragged it until it only covered half of the iPhone screen.

This is what my storyboard looks like with my extra UIView object selected:

enter image description here

However, when I actually use the app on my iPhone, the UIView is much smaller and doesn't even take up half of the screen(It's the square with the stackoverflow site image inside of it):

enter image description here

How can I keep it from being smaller when I actually run the app? When running the app, I want the UIView object to be the same size as it is on the storyboard in xcode.

Thanks for the help.

2

1 Answer 1

0

enter image description here

You must have selected Autolayout. Uncheck it and problem is resolved.

3
  • It's not auto layout. Already tried that. It has something to do with using AVFoundation and the AVCaptureVideoPreviewLayer. Feb 18, 2014 at 10:40
  • well, I can't see if you mentioned that earlier.
    – iBug
    Feb 18, 2014 at 10:43
  • Yeah sorry I had created a different post. Feb 18, 2014 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.