Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 快捷范围按钮文本颜色_Ios_Swift_Uisearchbar - Fatal编程技术网

Ios 快捷范围按钮文本颜色

Ios 快捷范围按钮文本颜色,ios,swift,uisearchbar,Ios,Swift,Uisearchbar,我的应用程序的UI有问题。我不知道如何编辑范围栏上按钮的颜色以使其更清晰 任何帮助都将不胜感激 我想这会对你有帮助 self.segControl.tintColor = [UIColor blackColor]; [self.segControl setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor redColor]} forState:UIControlStateNormal]; 此处的更多信息:是否使用

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


任何帮助都将不胜感激

我想这会对你有帮助

self.segControl.tintColor = [UIColor blackColor];



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

此处的更多信息:

是否使用UISegmentedControl?编程还是在InterfaceBuilder中?检查我正在使用InterfaceBuilder。尝试更改属性检查器中的“色调”或修复它,谢谢!