Updated deprecated method to remove compiler deprecation warning.

Removed deprecated method sizeWithFont:constrainedToSize:lineBreakMode: in calculateFrame and replaced it with boundingRectWithSize:options:context:. Old method was deprecated in iOS 7 and was throwing a warning in Xcode. This change cleans up the warning.