I'm currently developing an iOS application for iOS 7, where I am running JavaScript on UiWebView multiple times. However, I often encounter a crash with the error message: '[CFRunLoopTimer release]: message sent to deallocated instance'. Occasionally, I also face errors such as 'webthread multiple thread locks not allowed'.
Despite confirming that only one thread is interacting with the UIWebView at a time, I have experimented with executing operations on various threads and queues (background, main, and global) with no success in resolving the issue.
While using Instruments in zombie mode to profile the application and reproduce the crash, I receive further insights.
Although I have meticulously checked my JavaScript code and confirmed its correctness, the error persists frequently. I have even set NSZombieEnabled = YES but to no avail.
If anyone can provide a solution or debugging tip to help resolve this issue, it would be greatly appreciated.