Skip to content

Commit cfa3240

Browse files
author
Wolfgang Timme
committed
Fixed unrecognized selector error that would occur when using the text field in iOS 6.x .
1 parent 4cdd535 commit cfa3240

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

JVFloatLabeledTextField/JVFloatLabeledTextField/JVFloatLabeledTextField.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ - (void)setLabelActiveColor
7373
if (self.floatingLabelActiveTextColor) {
7474
_floatingLabel.textColor = self.floatingLabelActiveTextColor;
7575
}
76+
else if ([self respondsToSelector:@selector(tintColor)]) {
77+
_floatingLabel.textColor = [self performSelector:@selector(tintColor)];
78+
}
7679
else {
77-
_floatingLabel.textColor = self.tintColor;
80+
_floatingLabel.textColor = [UIColor blueColor];
7881
}
7982
}
8083

0 commit comments

Comments
 (0)