今天接了朋友台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;
这我也没搞懂为什么这样,不过初始化后,就不报这警告了