Is the UIViewController beginAppearanceTransition: animated: the method is available in iOS5

I need to use beginAppearanceTransition:animated: in a subclass of UIViewController that implements controller containment with custom animation transitions. I need to support iOS5 at least.

Apple docs says the method:

Available on iOS 6.0 and later.

However, UIViewController.h has a method labeled:

__ OSX_AVAILABLE_STARTING (__ MAC_NA, __ IPHONE_5_0)

I hope the documents are just wrong. Can someone give me a definitive answer on whether I am allowed to call this in iOS5?

+3
source share
2 answers

I published an error report with Apple about this discrepancy and received a response that the methods are available in iOS 5.0. The headings are correct and the documentation is incorrect. I filed another report to ask to update the documentation ...

Methods have been added to public headers in the iOS 6 SDK, but are available and can be used on devices running iOS 5.0.

Update (August 28, 2013)

The documentation has been updated to show that beginAppearanceTransition:animated: and endAppearanceTransition are available on iOS 5.0.

+6
source

In my experience, when in doubt, the headings are more accurate. documents are created / written using headers. Therefore, I assume that iOS 5 is currently supported.

Now I tested it on a simulator. Once for 5.0 and once for iOS 6.1, and moths are called in both versions whenever you press or paste vc.

+1
source

Source: https://habr.com/ru/post/1481770/


All Articles