SizeToFit method minimum IOS requirement(Support)

82 views Asked by At

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?

1

There are 1 answers

2
Munahil On BEST ANSWER

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