title: Overriding UILabel
body: <p>I have to present the currency and the price in a UILabel. In one label, but using different font sizes. Now it looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/nrGTq.png" alt="enter image description here"></p>
  
  <p>... and I did it overriding drawTextInRect: like this:</p>
  
  <pre><code>- (void)drawTextInRect:(CGRect)rect{
  
      CGSize textSize = [self.text sizeWithFont:self.font];
      textSize.width -= textSize.width/12;
      CGRect analogRect = CGRectMake(0, 0, textSize.width, self.frame.size.height);
      CGPoint centrino = self.center;
  
      self.frame = analogRect;
      self.center = centrino;
  
      NSString *currency = [self.text substringWithRange:NSMakeRange(0, 3)];
      NSString *amount = [self.text substringWithRange:NSMakeRange(3, self.text.length - 3)];
  
      self.text = currency;
      self.textAlignment = UITextAlignmentLeft;
      self.font = [UIFont fontWithName:@"Helvetica-Bold" size:30.];
      self.baselineAdjustment = UIBaselineAdjustmentAlignBaselines;
      [super drawTextInRect:analogRect];
  
      self.text = amount;
      self.textAlignment = UITextAlignmentRight;
      self.font = [UIFont fontWithName:@"Helvetica-Bold" size:40.];
      [super drawTextInRect:analogRect];    
  }
  </code></pre>
  
  <p>Nice, isn't it?</p>
  
  <p>But I need to align the currency and the price at the bottom, like this:</p>
  
  <p><img src="https://i.stack.imgur.com/CMKJF.png" alt="enter image description here"></p>
  
  <p>As you can see, I need to force "EUR" to go lower, because its size is smaller and it's centered, so it looks higher.</p>
  
  <p>Please suggest a way to do this.</p>
  
  <p>Thanks in advance!</p>
  
  <h2>NOTE:</h2>
  
  <p>Using 2 different labels is not good for me. I gotta do it in a single label.</p>