[READY] Various iOS 6 purge fixes and enhancements.

See also the similarly named pull request on PSPDFKit. 

Migrated an example to NSStringDrawing.