title: Error : bool _WebTryThreadLock(bool), for UIAlertView
body: <p>*<strong>*bool _WebTryThreadLock(bool),**</strong> 0x4c7a7e0: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...</p>
  
  <p>I m getting an above error when i do this,</p>
  
  <p>[alertForSavingText dismissWithClickedButtonIndex:ALERT_CANCEL animated:YES];</p>
  
  <p>This is my custom alert with textField inside. Error comes only when I switch the application from background to foreground also it occurs when there is some text present in custom alert textField &amp; keyboard is also visible.</p>
  
  <p>Any suggestion.</p>