这是我最后一个问题的后续部分.我用beginAnimations:context:
来设置一个动画块来设置一些UITextLabel的动画.然而,我注意到,在文件中说:"Use of this method is discouraged in iOS 4.0 and later. You should use the block-based animation methods instead."
我的问题是我想使用animateWithDuration:animations:(在iOS 4.0及更高版本中提供),但不想排除使用iOS 3.0的人.有没有办法在运行时判断设备的iOS版本,以便决定使用哪种语句?