I've found the solution. You can manage this type of animation using multiple labels, and show-hide those labels into textFieldDidBeginEditing
method.
If you want nice animation same as you describe into your question, then try once following third party repository for UITextField
.
If you are looking for the UITextView
equivalent of this animation, please visit UIFloatLabelTextView repository.