Posted By


elango on 04/07/10

Tagged


Statistics


Viewed 383 times
Favorited by 0 user(s)

DrawTextInsideUIView


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.