title: Confusion Regarding UIScrollView and AutoLayout
body: <p>I have looked around many different threads over the same issue and can't seem to grasp what is going on here. I created a very basic and simple project. What I want to happen is for a bunch of elements to be inside of a scroll view that scrolls properly. These elements may include a UITableView that scrolls independently (or not). Here is how I set up my basic project:</p>
  
  <p><img src="https://i.imgur.com/uPXp0U4.png" alt="IB View"></p>
  
  <p>Running this in the simulator will result in a view that doesn't scroll. This is expected as there is more than enough room for all of the elements. I then changed the size of UIScrollView like so:</p>
  
  <p><img src="https://i.imgur.com/y0AQg1I.png" alt="IB View 2"></p>
  
  <p>Running this in the simulator results in a smaller view that will not scroll. I assume I am not doing this the correct way. Here is the code I have most recently tried:</p>
  
  <p><code>ViewController.h</code></p>
  
  <pre><code>@interface ViewController : UIViewController &lt;UIScrollViewDelegate&gt;
  
  @property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
  @property (strong, nonatomic) IBOutlet UIButton *buttonOne;
  @property (strong, nonatomic) IBOutlet UIButton *buttonTwo;
  @property (strong, nonatomic) IBOutlet UIButton *buttonThree;
  @property (strong, nonatomic) IBOutlet UIButton *buttonFour;
  
  @end
  </code></pre>
  
  <p><code>ViewController.m</code></p>
  
  <pre><code>#import "ViewController.h"
  
  @interface ViewController ()
  
  @end
  
  @implementation ViewController
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
  
      [self.buttonOne setTranslatesAutoresizingMaskIntoConstraints:NO];
      [self.buttonTwo setTranslatesAutoresizingMaskIntoConstraints:NO];
      [self.buttonThree setTranslatesAutoresizingMaskIntoConstraints:NO];
      [self.buttonFour setTranslatesAutoresizingMaskIntoConstraints:NO];
      [self.scrollView setTranslatesAutoresizingMaskIntoConstraints:NO];
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  @end
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>