Returns the bounding box size the receiver occupies when drawn with the given attributes.
- iOS 7.0+
- macOS 10.0+
- tvOS 7.0+
- watchOS 2.0+
A dictionary of text attributes to be applied to the string. These are the same attributes that can be applied to an
NSAttributedobject, but in the case of
NSStringobjects, the attributes apply to the entire string, rather than ranges within the string.
The bounding box size the receiver occupies when drawn with the specified attributes.
This method returns fractional sizes; to use a returned size to size views, you must raise its value to the nearest higher integer using the