문제

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