iPhone NSString drawAtPoint linebreakmodeWordWrap

Posted by hecta on Stack Overflow See other posts from Stack Overflow or by hecta
Published on 2010-05-18T16:53:09Z Indexed on 2010/06/11 0:33 UTC
Read the original article Hit count: 380

Hello,

Since I had a very slow scrolling tableView I'm now trying to catch up with the direct draw method, similiar to the Tweetie App sample or Apples TableViewSuite code.

So right now I'm struggling to draw NSString with more than one line. I'm using the [NSString drawAtPoint: forWidth: withFont: linebreakMode:] method, and it "breaks" the line, but it doesn't show the second line, it just cuts the rest of the string off.

Is this a normal behavior and what can be the solution to multiple lines?

© Stack Overflow or respective owner

Related posts about uitableviewcell

Related posts about nsstring