vinnycoyne.com
Magical adventures in nerdery.

10 May 2013

Speeding up OHAttributedLabel drawing

If you're using OHAttributedLabel in an iOS project and don't care about your labels auto-detecting standard links like URLs and phone numbers, set:

myLabel.automaticallyAddLinksForType = 0;

for each label. I've seen a reduction of over 30% in drawing time, which has made scrolling much smoother!


← Back | 🔗 Permalink