Use cocoa attribute names constants instead of core text constants. iOS 8 support.