今天想把 button 中默认提示的文字和textField 占位符文字的颜色一样,可是使用数码测色计都不方便测试出来,后面一看原来 textfield 中有一个lightTextColor 的颜色,所以直接这样一行代码就解决了,代码如下:
self.accessoryBtn.titleLabel.tintColor= [UIColor lightTextColor];
今天想把 button 中默认提示的文字和textField 占位符文字的颜色一样,可是使用数码测色计都不方便测试出来,后面一看原来 textfield 中有一个lightTextColor 的颜色,所以直接这样一行代码就解决了,代码如下:
self.accessoryBtn.titleLabel.tintColor= [UIColor lightTextColor];