title: SWIFT: Draw UILabel under UIImage
body: <p>I'm new to iOS development, and I'm building a custom UIFlowLayout, I'm currently in the process of building my custom cell object which consist of an image and label.</p>
  
  <p>I want to draw the label under the UIImage, but I don't know how to anchor it directly under the UIImage.</p>
  
  <p>The layout I want to achieve is something like:</p>
  
  <pre><code>===========================
  [      Navigation Bar     ]
  ===========================
  
   [  Image  ]   [  Image  ]
   [  Label  ]   [  Label  ]
  
   [  Image  ]   [  Image  ]
   [  Label  ]   [  Label  ]
  
   [  Image  ]   [  Image  ]
   [  Label  ]   [  Label  ]
  
  ===========================
  [         Tab Bar         ]
  ===========================
  </code></pre>
  
  <p>The code I'm currently using for my <code>UICollectionViewCell</code> subclass looks like: </p>
  
  <pre><code>var label     : UILabel!
  var imageView : UIImageView!
  
  override init(frame: CGRect)
  {
      // Initialize the frame object
      super.init(frame: frame)
      self.backgroundColor = UIColor.grayColor()
  
      // Set up the image
      imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: frame.size.width, height: frame.size.height))
      imageView.contentMode = UIViewContentMode.ScaleAspectFill
      imageView.clipsToBounds = true
      contentView.addSubview(imageView)
  
      // Make the rectangle a circle by adjusting the corner radius, relative to 50% of the bounds
      self.layer.cornerRadius = (frame.size.width / 100) * 50
  
      // Set up the label (how do I do the anchoring?)
      label = UILabel(frame: frame)
      label.font = UIFont.systemFontOfSize(UIFont.smallSystemFontSize())
      label.textAlignment = .Center
      label.text = "Alexander Sims"
      contentView.addSubview(label)
  }
  </code></pre>