【发布时间】:2013-10-29 07:45:22
【问题描述】:
我需要我的应用支持 iOS 5+。由于之前的iOS 6,UILabel 中换行模式的枚举lineBreakMode 的类型为UILineBreakMode,而iOS 6+ 的类型为NSLineBreakMode,应该是最好(或更正确)的检查方法当前运行的iOS版本确定要使用的类型?直接做[[UIDevice currentDevice] systemVersion]之类的事情是正确的,还是有更好的方法?
谢谢!
【问题讨论】:
-
看到同样的问题,UILineBreakMode Vs NSLineBreakMode。
标签: ios ios5 ios6 uilabel line-breaks