关于iOS 6 中的一些“xxxxxx” is deprecated 问题的解决办法 - 有只茄子
2012-11-23 15:52:00 Author: www.cnblogs.com(查看原文) 阅读量:62 收藏

以UILineBreakModeTailTruncation 、UITextAlignmentCenter 举例 修改如下:

 1 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 60000
 2 
 3             NSLineBreakMode lbm = NSLineBreakByTruncatingTail;
 4 
 5 #else
 6 
 7             UILineBreakMode lbm = UILineBreakModeTailTruncation;
 8 
 9 #endif
10 
11 
12 
13 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 60000
14 
15             NSTextAlignment ta = NSTextAlignmentCenter;
16 
17 #else
18 
19             UITextAlignment ta = UITextAlignmentCenter;
20 
21 #endif

posted @ 2012-11-23 14:52  有只茄子  阅读(4335)  评论(1编辑  收藏

Copyright © 2020 有只茄子
Powered by .NET Core on Kubernetes


文章来源: http://www.cnblogs.com/qiezi/archive/2012/11/23/2784475.html
如有侵权请联系:admin#unsafe.sh