NSFontAttributedString worked before XCode 6.1

There are two reasons your code is failing to compile: The initializer for NSAttributedString that you want to use now requires the explicit labeling of the string parameter The UIFont initializer that you are using now returns an optional (i.e., UIFont?), which needs to be unwrapped before you pass it in the attributes dictionary. Try … Read more