在IOS 6标签对齐 - UITextAlignment德precated [英] Label Alignment in iOS 6 - UITextAlignment deprecated
本文介绍了在IOS 6标签对齐 - UITextAlignment德precated的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好像 UITextAlignmentCenter
是pcated在IOS 6日$ P $
Seems like UITextAlignmentCenter
is deprecated in iOS 6.
我仍然使用它,效果很好,但它给出了一个警告。
I still use it and works well, but it gives a warning.
我该如何解决这个问题?
How can I fix this?
label.textAlignment = UITextAlignmentCenter;
感谢。
推荐答案
在iOS6可以使用
label.textAlignment = NSTextAlignmentCenter;
希望这有助于。
Hope this helps.
这篇关于在IOS 6标签对齐 - UITextAlignment德precated的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文