Attributes for NSAttributedString such as NSFontAttributeName are available only for iOS 6 or newer. If one needs to use NSAttributedString, it must be done by using CoreText (kCTFontAttributeName and such).