All,
I have a view that has a label and a text box (no button!).
How would I make the label display exactly what is displayed in the text box at all times?
i.e. I type in “hello!”; the label should immediately display the “h” “he” “hel” as I’m typing it in. Does that make sense? (hopefully)
Thanks
.h
.m file
OR
If u use IB to create label and textfield then
.h file
.m file
follow below
before that u have to make sure u have connected label and textfield to ur ivar appropriately.
select ur textfield
from popup select textFieldDidChange then save by cmd+s
then run.