Why does this only work sometimes? (UITextView resign first responder question)?

It only gets called if (text length > 0 && text characterAtIndex:text length -1 == '\n') is true. Is this always the case? Maybe add an NSLog statement outside and inside the state to see if it is indeed true all of the time.

Assuming myTextView is the text area that has the current focus. – Jordan Mar 29 '10 at 0:24.

Checking for \n looks bizarre. Why would you do that?

Sometimes, it works perfectly. Sometimes, I get my JSON String (it appears in Firebug's "answer"-tab), but it won't log the JSON in console-log(). I'm not getting any errors and javascript is still working.

Next time after reloading, it might work, but it might not. I cannot remotely imagine why this only happens sometimes!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions