What you can do for a quick and easy fix is ββto use NSUserDefaults to save when you click "Enter message" and then reload this line when the user is logged in.
The reason that the text is lost, I assume here that there is no function to cache or save this line, and it just reloads the source code with a user token, but not the text that was printed before.
So, in conclusion, try to save the line when you click this button. Then reload the text and programmatically change the value of the input text. Does this make sense? I often get confused when I try to explain things.
source share