title: How to make UIButton a circle?
body: <p>I have been trying to make the UIButton in the cells a perfect circle.  Unfortunately the circle has been formed based on the background image rather than the UIButton frame.</p>
  
  <p>The code I have for creating a circle:  </p>
  
  <pre><code>cell.StoryViewButton.setImage(image, forState: .Normal)
  cell.StoryViewButton.frame = CGRectMake(50, 8, 100, 100)
  cell.StoryViewButton.layer.masksToBounds = false
  cell.StoryViewButton.layer.cornerRadius = cell.StoryViewButton.frame.width/2
  cell.StoryViewButton.clipsToBounds = true
  </code></pre>
  
  <p>The output looks like this: <img src="https://i.stack.imgur.com/AqtlQ.png" alt="Output Images for each cell"></p>
  
  <p>What can I do to get the perfect circle button frames that I want?</p>