Fixed iOS 6 compatibility

CGSize sizeWithAttributes: method doesn't exist in iOS6; crash results.  Added an iOS version check.  Uses sizeWithFont: for iOS 6 devices, and sizeWithAttributes: for iOS 7+.