iosxcodeminimumsizetofit

SizeToFit method minimum IOS requirement(Support)


simple Question , im trying to understand which minimal ios support SizeToFit method. I have tried it on a IOS 7 simulator and its seems to work properly. But according to the docs :

enter image description here

sample code :

numberToolbar.sizeToFit()

It support IOS 8+, how is it possible? Is it safe to use on ios 7?


Solution

  • Have a look at Apple's documentation here for sizeToFit. It says :

    Availability

    Available in iOS 2.0 and later.

    So, don't worry it will work on iOS7