title: Orientation changes disrupt the frames of my buttons
body: <p>I have a small set of buttons that have rounded edges based on their frame height/2. When the device rotates, the frames become misshapen until any button is pressed. Is there a way I can prevent this? Why is this happening? Thanks in advance. </p>
  
  <p>EDIT: Here's some code. Sorry, could have included that initially:</p>
  
  <pre><code> for button in buttons {
          button.titleLabel?.numberOfLines = 1
          button.titleLabel?.adjustsFontSizeToFitWidth = true
          button.layer.cornerRadius = button.frame.size.width / 2
   }
  </code></pre>
  
  <p>I call this during ViewDidLayoutSubviews.</p>