Proud Member Proud Member - 1 year ago 127
iOS Question

Is there a constant for the maximum CGFloat value?

I need to create a CGSize to compute text height of an arbitrary text with arbitrary length. UIKit has this nice method -sizeWithFont:constrainedToSize: and my text is only constrained in width, but not in height.

For this, I need to set the maximum possible CGFloat for the height.

Is there a constant like "CGFloatMax"?

Answer Source

CGGeometry defines:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download