Iphone 与默认UIButton颜色[蓝色]匹配的文本颜色

Iphone 与默认UIButton颜色[蓝色]匹配的文本颜色,iphone,Iphone,默认的UIButton圆形矩形是深蓝色。我希望表格中的单元格文本与此蓝色匹配 我正在使用此代码,但我能找到的唯一蓝色是明亮的蓝色 cell.textLabel.textColor = [UIColor blueColor]; 使用此代码可以使用RGB值设置颜色 cell.textLabel.textColor = [UIColor colorWithRed:.196 green:0.3098 blue:0.52 alpha:1.0]; iOS6中的颜色为: [UIColor colorWit

默认的UIButton圆形矩形是深蓝色。我希望表格中的单元格文本与此蓝色匹配

我正在使用此代码,但我能找到的唯一蓝色是明亮的蓝色

cell.textLabel.textColor = [UIColor blueColor];

使用此代码可以使用RGB值设置颜色

cell.textLabel.textColor = [UIColor colorWithRed:.196 green:0.3098 blue:0.52 alpha:1.0];
iOS6中的颜色为:

[UIColor colorWithRed:0.22 green:0.33 blue:0.53 alpha:1.0]

iOS 7及以上版本的系统按钮文本颜色为:

斯威夫特:

UIColor(red: 0, green: 0.478431, blue: 1, alpha: 1)
目标C:

[UIColor colorWithRed:0 green:0.478431 blue:1 alpha:1]

你有这个偶然的来源吗?这是正确的答案<代码>UIColor*颜色=_yourButton.currentTitleColor;NSLog(@“title color:%@”,theColor”);如果需要进一步的证明。Swift证明:
打印(UIButton(type:.System.currentTitleColor)
@arcadybob有正确的想法。如果你还没有按钮对象,你可以做一些类似于
UIColor*systemTextColor=[[UIButton button WithType:UIButtonTypeSystem]titleLabel]textColor];cell.textlab.textColor=systemTextColor;