title: Vertically top align the part of text in UILabel
body: <p>How can we subclass a label so that it displays text as follows
  <strong>prefix</strong>(aligned to top), <strong>text</strong> and, <strong>suffix</strong>(aligned to bottom). </p>
  
  <p>I have used following method currently on subclass of UILabel</p>
  
  <pre><code>-(void)setText:(id)text withPrefixText:(id)prefixText andSuffixText:(id)suffixText {
  
      NSString * compondText = [self textByCompoundingText:text withPrefixText:prefixText WithsuffixText:suffixText];
      NSMutableAttributedString * attributedCompoundText = [[NSMutableAttributedString alloc] initWithString:compondText];
  
      NSMutableDictionary * prefixTextAttributes = [@{} mutableCopy];
      prefixTextAttributes[NSFontAttributeName]  = _prefixTextFont? _prefixTextFont:self.font;
      prefixTextAttributes[NSForegroundColorAttributeName] = _prefixTextColour? _prefixTextColour:self.textColor;
      prefixTextAttributes[(NSString*)kCTSuperscriptAttributeName] = [NSNumber numberWithUnsignedInteger:_prefixTextVerticalPositionning];
  
      NSMutableDictionary * suffixTextAttributes = [@{} mutableCopy];
      suffixTextAttributes[NSFontAttributeName]  = _suffixTextFont? _suffixTextFont:self.font;
      suffixTextAttributes[NSForegroundColorAttributeName] = _suffixTextColour ?_suffixTextColour:self.textColor;
      suffixTextAttributes[(NSString*)kCTSuperscriptAttributeName] = [NSNumber numberWithUnsignedInteger:_suffixTextVerticalPostioning];
  
      if(prefixText)
          [attributedCompoundText addAttributes:prefixTextAttributes  range:[compondText rangeOfString:prefixText]];
      if(suffixText)
          [attributedCompoundText addAttributes:suffixTextAttributes  range:[compondText rangeOfString:suffixText]];
  
      self.attributedText = attributedCompoundText;
  }
  </code></pre>
  
  <p>But this sets the text as superscript which doesn't solve the problem. The top of prefix text and text should be same,But prefix text should be vertically top aligned with smaller font size!</p>