gpt4 book ai didi

ios - Swift 范围按钮文本颜色

转载 作者:行者123 更新时间:2023-11-30 13:39:15 27 4
gpt4 key购买 nike

我的应用程序的 UI 出现问题。我不知道如何编辑范围栏上按钮的颜色以使它们更清晰。

如有任何帮助,我们将不胜感激。

最佳答案

我想这会对你有帮助..

self.segControl.tintColor = [UIColor blackColor];



[self.segControl setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor redColor]} forState:UIControlStateNormal];

更多信息请点击:https://developer.apple.com/library/ios/documentation/userexperience/conceptual/UIKitUICatalog/UISegmentedControl.html

关于ios - Swift 范围按钮文本颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35758182/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com