title: Filling a UIScrollView with content programmatically
body: <p>There has to be a better way to fill a <code>UIScrollView</code> with <code>UILabel</code>, and <code>UIImageView</code> and other content without having to define <code>CGRectMake</code> with a start position. Is there such a thing as a stacking view? Im assuming not really, but what is the proper way of adding content dynamically.</p>
  
  <p>Heres what Im doing currently:</p>
  
  <pre><code>func configureView() {
      self.addHeaderImage()
  
      var scrollView: UIScrollView!
      var missionStatement: UILabel!
      var missionStatementText: UILabel!
      var history: UILabel!
      var historyText: UILabel!
  
      scrollView = UIScrollView()
      scrollView!.frame = CGRectMake(0, headerImage.bounds.height, self.view.bounds.width, self.view.bounds.height)
      scrollView!.contentSize = CGSize(width: self.view.bounds.width, height: self.view.bounds.height * 2)
      scrollView!.autoresizingMask = UIViewAutoresizing.FlexibleHeight
      self.view.addSubview(scrollView)
  
      missionStatement = UILabel()
      missionStatement!.frame = CGRectMake(10, 5, headerImage.bounds.width - 20, 30)
      missionStatement!.text = "Our Mission Statement"
      missionStatement!.font = UIFont(name: "HelveticaNeue-Bold", size: 22.0)
      scrollView.addSubview(missionStatement)
  
      missionStatementText = UILabel()
      missionStatementText!.frame = CGRectMake(10, missionStatement.frame.height, headerImage.bounds.width - 20, 100)
      missionStatementText!.text = "Covenant United Methodist Church, as a companionate community, serves people through the sharing, caring, and reaching out in the name of Jesus Christ."
      missionStatementText!.font = UIFont(name: "HelveticaNeue", size: 17.0)
      missionStatementText!.numberOfLines = 0
      scrollView.addSubview(missionStatementText)
  
      history = UILabel()
      // By the time Im done adding things to this 1 view, Its going to be an insane addition problem to find the starting y of the rectangle
      history!.frame = CGRectMake(0, missionStatement.frame.height, 0, 0)
  }
  </code></pre>