From c18d61e4815e927411c83f27b685ff69e21f2596 Mon Sep 17 00:00:00 2001 From: eburke Date: Sun, 13 Sep 2015 13:30:34 -0400 Subject: [PATCH] expose the tint color of the text field (to control the cursor color) --- Classes/THContactPickerView.h | 1 + Classes/THContactPickerView.m | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Classes/THContactPickerView.h b/Classes/THContactPickerView.h index 6d0657f..1eb273e 100755 --- a/Classes/THContactPickerView.h +++ b/Classes/THContactPickerView.h @@ -43,6 +43,7 @@ - (void)setPromptLabelText:(NSString *)text; - (void)setPromptLabelAttributedText:(NSAttributedString *)attributedText; - (void)setPromptLabelTextColor:(UIColor *)color; +- (void)setPromptTintColor:(UIColor *)color; - (void)setFont:(UIFont *)font; @end diff --git a/Classes/THContactPickerView.m b/Classes/THContactPickerView.m index 0ec1de2..c92c4c3 100755 --- a/Classes/THContactPickerView.m +++ b/Classes/THContactPickerView.m @@ -143,6 +143,10 @@ - (void)setPromptLabelTextColor:(UIColor *)color{ self.promptLabel.textColor = color; } +- (void)setPromptTintColor:(UIColor *)color{ + self.textField.tintColor = color; +} + - (void)setBackgroundColor:(UIColor *)backgroundColor{ self.scrollView.backgroundColor = backgroundColor; [super setBackgroundColor:backgroundColor];