Wrong floatingLabel text
Created by: ikorich
Can't setup different text for Placeholder and FloatingTitle
self.textField.alwaysShowFloatingLabel = YES; [self.textField setPlaceholder:@"Placeholder" floatingTitle:@"Floating Title"];
click to text field, then click to some another view calls [UITextField resignFirstResponder]
and your code:
- (void)setAttributedText:(NSAttributedString *)attributedText { [self updateDefaultFloatingLabelFont]; }
- (void)setFloatingLabelFont:(UIFont *)floatingLabelFont { [self setFloatingLabelText:self.placeholder]; }
Result: floatingTitle and Placeholder has same text - Placeholder