iphone - How to make a UILabel which adjusts it's text to the upper left? -


Text after "

For some strange reason, this does not work in iPhone OS 3.0: I have a large fullscreen UILabel with number code Created = 0 and baselineAdjustment = UIBaselineAdjustmentNone .

Refuses to show the text in the upper left part. . It is always in the center of the demarcation box, the left-hand alignment

Documentation says:

Adjust relative to the text to the upper-left corner of the UIBaselineAdjustmentNone Bounding Box. This is the default adjustment available in iOS OS 2.0 and later.

Perhaps an outline bug? I started with bright new labels to test it. The text is centered.

"itemprop =" text ">

The default implementation does not respect vertical text centers and contentMode property [(CGRect ) InFrame {CGRect draw = self textRectForBounds: inFrame limitedToNumberOfLines: [self (zero) drawTextInRect - in a subclass

  @implementation TopLeftLabel: apply  drawTextInRect NumberOfLines]]; Draw.origin = CGPointZero; [Super drawoutlinewrite: draw]; } @end  

baseelineAdjustment property is only for font size when being adjusted to fit the width.


Comments