开发者

How to cache text entered in the UITextField?

开发者 https://www.devze.com 2022-12-26 09:26 出处:网络
I have a requirement where i need to enter a text in the text field and when i come out of the view and again open the same view where text field is present, i need the text entered earlier need to ap

I have a requirement where i need to enter a text in the text field and when i come out of the view and again open the same view where text field is present, i need the text entered earlier need to appear on the textfield(caching) before the user enters the text for the second ti开发者_StackOverflow中文版me.. Please help me..


Does the ViewController of the view containing the textfield get released if you leave the view? Maybe you should hold a reference to this ViewController that it won't be released and therefore your text is still present in the textfield.

0

精彩评论

暂无评论...
验证码 换一张
取 消