-
A UIWebView with a transparent background and a custom background setted in the view.background.
-
A UIWebView with the custom background loaded from CSS code.
I am using the custom background image in all the views of my app with imageNamed, so I think it is cached. But I’m not sure if the webView in the second option is loading a new resource every time it loads (since it’s loaded using html). Does the iOS webkit do a resource caching?
Thanks in advance.
I would say it doesn’t matter. Image resources are usually cached when you fetch them using an
UIImageinitializer, andUIWebViewalso caches images in it’s browser cache.