Reduce iOS memory utilization by taming NSURLCache

Reduce iOS memory utilization by taming NSURLCache

If your iPhone or iPad app embeds UIWebViews or makes HTTP requests directly with NSURLConnection, it’s important to keep an eye on memory utilization by running it through the profiler occasionally. Web requests can use a lot of memory, and you may find the memory footprint grows and grows the more you use the app. […]

Empty or incorrect URL with webViewDidStartLoad

Posted by on Aug 9, 2011 in iOS, iPad, iPhone, Mobile Applications | No Comments

If you’re using a UIWebView in your iPhone or iPad app and you want to execute some code when a page starts loading you’ll likely turn to the webViewDidStartLoad: method in UIWebViewDelegate. However, you may have surprisingly unpredictable results. For example, the following code won’t work as expected: – (void)webViewDidStartLoad:(UIWebView *)webView {     if […]