I have UILabel *lblTest. and I set text to this label as “test” in Interface Builder.
now I set lblTest text as “new test” through code.
So now again I want to get “test” text which I already set in Interface Builder.
Is there any way to do this smartly?
NOTE : I am not interested to do number of line code….
Expecting single line solution.
Thanks in Advance.
You have to understand that that the values in your Interface Builder will be overwritten by the code code you’ve wrote yourself.
So once your code has changed the label, you can revert the value of the Interface Builder like:
Still it doesn’t make any sense really..