0

I have a Chat screen which have a UITextView and it can save the text value when user input (Although I go to another view and then back to the chat screen, and the text value which input by user also saved; text value in TextView just nil when user click send button).
When I make a call (it means I go to the call screen into my app, not related to the call screen of OS) and then press end call to back to the Chat screen.
The problem is the text value of UITextView is nil and rarely, it just save the first letter of the long text. I don't clear text any where. Please help me to explain why?

4
  • 3
    show us your source code :-)
    – thorb65
    Dec 20, 2013 at 10:31
  • to show the chat screen you are calling popToViewContrroller or pushToViewController? if you are calling pushToViewController, no value will be retained Dec 20, 2013 at 10:59
  • 1
    i think the problem is line number 4 in your code. :)
    – Buntylm
    Dec 20, 2013 at 11:23
  • When you show some code then include your viewWillAppear and viewDidAppear methods if you implemented them. Dec 20, 2013 at 11:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.