Updated to get rid of deprecated method NSString sizeWithFont:constrainedToSize: in favor of NSString boundingRectWithSize:option:attributes:context:.