objective c - ios webview loadHTML string with link css -
i load html string in link local css file lies in docment folder,
...<head><link href="a.css">...</head>...
then call webview.loadhtml:htmlstring baseurl:docurl;
css loaded ok. change a.css 's body {background:url(b.gif);} //previous a.gif
, pop webview's view controller, , re-push new 1 in webview load same html string link same css body's background image has been changed. comes problem: times webview load changed background, while times load old image though css changed! , maybe realloc view controller times, maybe load right one! can teach me how fix it? lot!
Comments
Post a Comment