NSAttributedString Syntax for Swift 1.2
let attributedString = NSAttributedString(data: encodedData, options: attributedOptions, documentAttributes: nil, error: nil)!
NSAttributedString Syntax for Swift 2.0
let attributedString = try! NSAttributedString(data: encodedData, options: attributedOptions, documentAttributes: nil)
No comments:
Post a Comment