2013/06/19

[iOS] Fascinating stuff: NSDataDetector and CFStringTransform

I am working on a new iOS app that needs to parse address and phone number nicely.

Well, turns out Apple has this NSDataDetector thing. Nicely covered by NSHipster.

Another great stuff is this CFStringTransform. You pass in some Chinese text like "中文" and it will spit out romanized version of "zhōng wén".