Fixed deprecation warning about using -[NSString sizeWithFont:] in iOS 7

Made change so that if this code is being compiled against iOS 7, it uses the recommended -[NSString sizeWithAttributes:] instead.