My iPad app has a webview that contains an app written in jQuery. It is pretty heavy in that it loads Base64 strings from SQLite.
In the Intstruments Allocations profiler the memory allocations keep increasing and only ever decreasing by miniscule amounts.
I am using the FMDB wrapper for SQLite and have written my own functions that init string so I can release them directly afte开发者_运维问答r sending to the UIWebView. It hasn't helped the allocations count, so my next port of call is the WebView jQuery app.
Since I haven't written the jQuery I don't know where to look.
Is there a way that I can remove/release/flush the UIWebView and then re-create it and reload my web app?
Any ideas would be greatly appreciated.
Thanks.
Instead of theorising about what might be wrong, you can take the jQuery app out and use it in browser. Use Chrome dev tools to check what the memory usages are and you can pinpoint leaks to pages more accurately.
Also I think its interesting to look at the google search API app in app store. They are kind of using a web view but it works perfectly. Any ideas about that?
精彩评论