Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的旧代码
sectorLabel.textAlignment = UITextAlignmentCenter;
Xcode 说 textAlignment 已被弃用。如何使用新方法?
谢谢
它现在使用与 Mac 相同的属性。
改用NSTextAlignmentCenter:D
NSTextAlignmentCenter
高温高压