سؤال

Hello I have a tabbed application.

It's two calculators. However when I change the tab and go back to it, the data that I entered into the text field remains the same. How do I clear it?

هل كانت مفيدة؟

المحلول

Try this for clear textfield add this line in your viewDidUnload or viewWillDisappear method

   yourtextfield.text=@"";

Hope this code is useful for you.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top