Posted By

elango on 04/07/10


Tagged

textmate UIView UIText


Versions (?)

DrawTextInsideUIView


 / Published in: Other
 

  1. UIFont *font = [UIFont boldSystemFontOfSize:12.0f];
  2. [self.infoColor set];
  3. NSString *lbl = @"Test";
  4. [lbl drawInRect:CGRectMake((startx + 20), 5, 60, 20.0f) withFont:font lineBreakMode:UILineBreakModeTailTruncation alignment:UITextAlignmentLeft];
  5.  

Report this snippet  

You need to login to post a comment.