UITextfield class to float the Placeholder and customize the placeholder while editing. i have remove require add delegate.
- Add Floating effect In UITextfield Placeholder.
- Change the Placeholder Text Color.
- Change the Placeholder Text Color when UITextfield begins editing.
- Add bottom line in UITextfield.
- Change the bottom line color.
- Change the bottom line color when UITextfield begins editing.
- The best is yet to come.
Download the Sample and drag & drop the ACFloatingTextField.h and ACFloatingTextField.m in your project.
1) Add Textfield From Storyboard in View Controller and Set the class to ACFloatingTextField or create the textfield programmatically.
2) Set Placeholder Text By Following Method.
textField.placeholder = @"Username";
##Customization
1) Change the colour of Bottom Line.
_textField.btmLineColor = [UIColor blueColor];
2) Change the selected State colour for Bottom Line.
_textField.btmLineSelectionColor = [UIColor orangeColor];
3) Change the Placeholder Color.
_textField.placeHolderTextColor = [UIColor redColor];
4) Change the Selected Placeholder Color.
_textField.selectedPlaceHolderTextColor = [UIColor greenColor];
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute,please submit a pull request.
ACFloatingTextField is released under the MIT license. See LICENSE for details.