문제

I want to add a variable place holder in my textField and when something is written in textField, that text should be appended to place holder without any change to place holder. How should I go about it?

도움이 되었습니까?

해결책

you can do this by using clearsOnBeginEditing property and set it to FALSE.

textField.clearsOnBeginEditing = NO;

If you are creating textfield by interface builder then you have to go to inspector in Interface Builder(Press command 1) and finally you have to uncheck the Clear when editing begins option.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top