Shark shows me that this method takes a HUGE performance hit. Like 80% in my table view. All I do is draw two labels per cell (about 8 in total per page). During scrolling. I drawInRect: with that.
Are there some better methods? Like drawing directly to some layer?
You can do faster drawing using code like the following:
However, the Mac Roman encoding for the Helvetica font on the iPhone is missing symbols for many non-English characters, so I think you’re stuck with the NSString drawing methods unless you want to step up to Core Text in iPhone OS 3.2.
To check and see if your string can be represented using the Mac Roman character set, use something like the following: