title: What's the correct way to rotate a UILabel 90 degrees?
body: <p>I'm attempting to rotate a UILabel 90 degrees within a UIView. <p>
  The following snippet is an attempt to write something in Swift that can do that:</p>
  
  <pre><code>  //  #define DEGREES_TO_RADIANS(x) (x * M_PI/180.0)
  
      let angle:CGFloat = (90.0 * 3.14/180.0) as CGFloat
      let rotation = CGAffineTransformMakeRotation(angle)
  
      self.dayLabel.transform(rotation)
  </code></pre>
  
  <p><p>
  I encountered couple compiler errors: <br/>
  1) Attempting to convert radians to an angle encountered a double --> float conversion problem and hence, had to use '3.14' vs 'M_Pi'.
  <br/>
  2)  I got the following error when attempting to actually doing the transformation on UILabel:
  <img src="https://i.stack.imgur.com/kvG8X.png" alt="enter image description here"></p>
  
  <p><p></p>
  
  <p>What's the correct way to rotate a UILabel 90 degrees?
  <hr/>
  Okay... I got the transform syntax but...<br/>
  Here's the original image:<br/>
  <img src="https://i.stack.imgur.com/AXXPK.png" alt="enter image description here">
  <p>
  My goal is to position 'TUE' vertically against the left side of the cell.
  <br/>
  I originally tried a 90 deg counter rotation:</p>
  
  <pre><code>    self.dayLabel.transform = CGAffineTransformMakeRotation(-90)
  </code></pre>
  
  <p><p>
  And got the following: <br/>
  <img src="https://i.stack.imgur.com/ZjuAv.png" alt="enter image description here">
  <p>
  I tried to vary the degrees but can't get a solid vertical position.
  <br/>
  I do/can I have <em>tighter</em> control over the transformation?</p>