iOS - "Received memory warning" when viewing specific PDF in UIWebView - ios

I have an iPad app which has a UIViewController containing a UIWebView for viewing documents. I've been using this happily for some time with no problems. However I've come across a 13 page PDF document which the UIWebView loads OK but when you scroll through the pages it causes the app to crash, unless there are very few other apps loaded at the time. When running the app in debug mode, I get the message "Received memory warning" in the debug window. When the app crashes I often (but not always) get a EXC_BAD_ACCESS. I have successfully viewed much bigger PDFs than this one in the past, but this one does have more graphics. I have an iPhone app which uses the same UIViewController and this loads and views the PDF fine with no errors. Any ideas how to handle this?

Related

Slow web apps when launched in full screen mode from the home screen on iOS

We have a web app that will launch in full screen mode on iOS when bookmarked to the home screen.
The web app is significantly slower compared to running in Safari as normal.
I'm aware of some old articles on this issue like here:
http://teleread.com/web-apps-launched-from-ios-home-screen-run-slower-than-in-safari/index.html
Can anyone add updated information to this issue? Why does it happen? Is there a way around it?

Swift UIWebview consumes 101% of the cpu and the app crashes

I'm working on a swift app that contains a UIWebView and the site that it shows is kinda big and it has a lot of pictures and javascript, when I test it on a virtual device, it works. but on a real Iphone or Ipad it crashes after a couple of seconds, Xcode shows me the memory usage goes around 50 mb and the cpu usage goes up until 101% and the app crashes.
Is there a way to fix this without editing the website?

Webview crash in ios with PDFJS

I have loaded a pdf in a UIWebView using PDFJS (pdf.js mozilla library).
All loading is fine, but the app crashes, when the user scrolls very fastly and when zoom. Up on debugging, I noticed that App received memory warning and crashed.
Anyone faced this issue, how do we handle the memory warning generated by UIWebview?

iOS app hangs when tapped

My app occasional hangs when opening/awakening from the background. I'll tap the icon and it takes about 10 secs to even open the loading screen. It's mainly with a slow internet connection, but I would think the loading screen would come up first.
The app isn't in the store yet, it's just on my phone through the simulator, would this cause any issues? It only happens after it's been sent to the background and then re-activated.
Any ideas, sorry to be a little vague?
I'm not getting any errors and I don't have any code in the AppDelegate file.
Try to run it in instrument. There must be memory leaks.
Xcode > Open Developer Tool > Instruments

App is crashes after successfully upload of 100+ images and then opening camera

App is crashes after successfully upload of 100+ images and opening camera. Tested application leaks with leak instrument but there is no leaks at all.
Is there any tool or solution which tell us where the problem exactly is, in which files etc..
I am displaying all the 100+ images in tableview cell.

Resources