title: UILabels within an array not showing up on ViewController
body: <p>So I'm trying to make a grid/table show up in my app, and to do this I created an array of UILabels with:</p>
  
  <pre><code>var rows = 2
  var columns = 2
  
  var grid = [[UILabel]](count: rows, repeatedValue: [UILabel](count: columns, repeatedValue: UILabel()))
  </code></pre>
  
  <p>then I created each UILabel with:</p>
  
  <pre><code>for i in 0 ..&lt; grid.count
  {
      for j in 0 ..&lt; grid[0].count
      {
          grid[i][j].frame = CGRectMake(x + CGFloat(j*Int(gridSpace)), y + CGFloat(i*Int(gridSpace)), gridSpace, gridSpace)
          grid[i][j].backgroundColor = UIColor.redColor()
          grid[i][j].hidden = false
  
          grid[i][j].textColor = UIColor.whiteColor()
          grid[i][j].textAlignment = NSTextAlignment.Center
          grid[i][j].text = "label: [\(i)][\(j)]"
  
          self.view.addSubview(grid[i][j])
  
          print("grid[\(i)][\(j)]X = \(grid[i][j].frame.origin.x)          grid[\(i)][\(j)]Y = \(grid[i][j].frame.origin.y)")
      }
  }
  </code></pre>
  
  <p>What happens is actually pretty interesting. The code compiles and everything, but only one of the labels shows up. The dimensions and everything about the label are perfect, but only one of them shows up.</p>
  
  <p>The label that shows up is always the grid[rows-1][columns-1] label. But when I print the x and y coordinates of the rest of the labels that are supposed to be in the grid array, all of the coordinates are exactly where they are supposed to be on the viewcontroller it's just that the labels don't show up. when I changed the for loop to </p>
  
  <pre><code>for i in 0 ..&lt; grid.count-1
  {
       for j in 0 ..&lt; grid[0].count-1
       {
  </code></pre>
  
  <p>still only the last label (the grid[rows-1][columns-1] label) shows up yet the coordinates are exactly where they should be. Another weird thing is that if I change the line </p>
  
  <pre><code>grid[i][j].text = "test label: [\(i)][\(j)]"
  </code></pre>
  
  <p>to </p>
  
  <pre><code>if(j != grid[0].count-1)
  {
      grid[i][j].text = "test label: [\(i)][\(j)]"
  }
  </code></pre>
  
  <p>then the label that shows up still has the coordinates of the grid[rows-1][columns-1] but has the labeltext of grid[rows-1][columns-2]</p>
  
  <p>Can anyone fix my problem for me or explain whats going on?</p>