How to add multiple subviews on view without hiding the last added subview?
<p>This is my code</p>

<pre><code>  var button = [UIButton?](count:3, repeatedValue: UIButton())
  for i in 0...2{

            button[i]!.tag = i
            button[i]!.frame = CGRectMake(CGFloat(i) *(collectionViewLove?.frame.width)!/3,0,(collectionViewLove?.frame.width)!/3, 30)
            button[i]!.setTitle(titleForButtonsOneSelected[i], forState: .Normal)
            button[i]!.titleLabel?.adjustsFontSizeToFitWidth = true
            button[i]!.layer.borderWidth = 1.0
            button[i]!.layer.borderColor = UIColor.blueColor().CGColor
            button[i]!.backgroundColor = UIColor.clearColor()
            button[i]!.setTitleColor(UIColor.blackColor(), forState: .Normal)
            view.addSubview(button[i]!)

        }
</code></pre>

<p>The problem is only the last button added to the view is getting shown. How do I show all the button objects in the view? </p>

<p>EDIT:
The frame values for UIButton I am getting</p>

<blockquote>
  <p>(0.0, 0.0, 106.666666666667, 30.0)</p>
  
  <p>(106.666666666667, 0.0, 106.666666666667, 30.0)</p>
  
  <p>(213.333333333333, 0.0, 106.666666666667, 30.0)</p>
</blockquote>