title: Resizing UILabel with no quality loss
body: <p>I want to be able to resize a UILabel using a <code>UIPinchGesture</code>, with no quality loss. At the moment I can resize it though it becomes really blurry. </p>
  
  <p>Here is my Code</p>
  
  <pre><code>label = UILabel(frame:CGRectMake(0,100,300,50))
      label.text = "Hellow World"
      label.textColor = UIColor.blueColor()
      label.font = UIFont(name: "HelveticaNeue-Bold", size: self.label.frame.height)
      self.view.addSubview(label)
  
      self.resizeRecognizer = UIPinchGestureRecognizer(target: self, action: Selector("handleScale:"))
      self.rotateRecognizer = UIRotationGestureRecognizer(target: self, action: Selector("handleRotate:"))
  
      label.userInteractionEnabled = true
      label.addGestureRecognizer(self.resizeRecognizer)
  </code></pre>
  
  <p>This is my gesture recogniser </p>
  
  <pre><code>func handleScale(recognizer: UIPinchGestureRecognizer)
  {
      recognizer.view!.transform = CGAffineTransformScale(recognizer.view!.transform,
          recognizer.scale, recognizer.scale)
      recognizer.scale = 1
          recognizer.view!.frame = CGRectMake(recognizer.view!.frame.minX, recognizer.view!.frame.minY, recognizer.view!.frame.width, recognizer.view!.frame.height)
  
      println(recognizer.view!.frame)
      println(self.label.font.fontWithSize(recognizer.view!.frame.height))
      println(self.label.frame)
  
  }
  </code></pre>
  
  <p>What needs to happen here is when the labels frame is scaled, the size of the text also need to change as well. 
  So as I change the frame the font size should change <code>label.font = UIFont(name: "HelveticaNeue-Bold", size: self.label.frame.height)</code></p>
  
  <p>This is what I have come to </p>
  
  <pre><code>&lt;UICTFont: 0x7ffb39e17ba0&gt; font-family: "Helvetica Neue"; font-weight: bold; font-style: normal; font-size: 578.77pt
  &lt;UICTFont: 0x7ffb3ca03ed0&gt; font-family: "Helvetica Neue"; font-weight: bold; font-style: normal; font-size: 594.29pt
  </code></pre>
  
  <p>The font size does adjust as the frame adjusts, I have tried making that the font size from the beginning and it renders crisp.
  What I think is going on is, the actual label isn't getting re rendered again.
  Does anybody know what's going on or how to fix it? </p>
  
  <p>Edit:</p>
  
  <p>The text on the top is what I want to happen after rescale, the text on the bottom is what is happening </p>
  
  <p><img src="https://i.stack.imgur.com/feKAV.png" alt="Top = Correct, Botton = Incorrect"></p>
  
  <p>The way I achieved this was I created a new label with the sizing of the old label then added it to the subview, I want to be able to do this upon rescaling, if that makes any sense</p>