Using two-stage rotation animation.

本文详细介绍了在使用自定义TabBar时遇到的iOS4.3.1设备上的警告问题,通过设置self.customTabBar.selectedIndex为0成功解决了此问题。解释了警告产生的原因,并提供了解决步骤。

今天接了朋友台IOS4.3.1的设备,测试时发现了如下警告:

Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.

Using two-stage rotation animation is not supported when rotating more than one view controller or view controllers not the window delegate.

这在ios5以上设备测试时没有出现

设置了几个断点,终于找到了出现的地方

[self presentModalViewController: self.customTabBar animated:YES];

找了半天终于找到问题了,原来必须要初始化self.customTabBar.selectedIndex = 0;

这我也没搞懂为什么这样,不过初始化后,就不报这警告了

转载于:https://www.cnblogs.com/Wendale-Zhang/archive/2013/01/16/2862751.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值