UIViewController 的 beginAppearanceTransition:animated: 方法在 iOS5 中可用吗 [英] Is UIViewController's beginAppearanceTransition:animated: method available in iOS5

查看:38
本文介绍了UIViewController 的 beginAppearanceTransition:animated: 方法在 iOS5 中可用吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 UIViewController 子类中使用 beginAppearanceTransition:animated:,该子类通过自定义动画过渡实现控制器包含.我至少需要支持 iOS5.

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

苹果 docs 说方法是:

适用于 iOS 6.0 及更高版本

Available in iOS 6.0 and later

然而 UIViewController.h 的方法被标记为:

Yet UIViewController.h has the method tagged with:

__OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0)

__OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0)

我希望文档是错误的.谁能给我一个明确的答案,我是否可以在 iOS5 中调用它?

I'm hoping the docs are just wrong. Can anyone give me a definitive answer on whether I'm allowed to call this in iOS5?

推荐答案

我向 Apple 提交了关于此差异的错误报告,并得到了这些方法在 iOS 5.0 中可用的回应.标题是正确的,文档是错误的.我已经提交了另一份报告,要求更新文档...

I filed a bug report with Apple about this discrepancy and got the response that the methods are available in iOS 5.0. The headers are right and the documentation is wrong. I've filed another report to ask for the documentation to be updated...

这些方法已添加到 iOS 6 SDK 的公共标头中,但仍可用且可在运行 iOS 5.0 的设备上使用.

The methods were added to the public headers in the iOS 6 SDK, but are available and can be used on devices running iOS 5.0.

更新(2013 年 8 月 28 日)

文档更新以显示 beginAppearanceTransition:animated:endAppearanceTransition 在 iOS 5.0 上可用.

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

这篇关于UIViewController 的 beginAppearanceTransition:animated: 方法在 iOS5 中可用吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆