Note that there are some explanatory texts on larger screens.

plurals
  1. POWithout using baseURL can we add local Images in the UIWebView
    primarykey
    data
    text
    <p>I am having a problem when loading a webview. Header part having two images which are stored locally.</p> <p>and body content and back ground images are given by client url. 1)Header part should be scrolled. 2)Get the path for local images with out using base url because in baseURL we are giving client url to get the body background images. </p> <pre><code> NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding]; NSString *absStirng=[[[NSBundle mainBundle] resourceURL] absoluteString]; printf("\n absStirng=============================== %s",[absStirng UTF8String]); NSString* appendString=@""; appendString = [appendString stringByAppendingString:@"&lt;body&gt;"]; appendString =[appendString stringByAppendingString:@"&lt;table background="]; appendString =[appendString stringByAppendingString:absStirng]; appendString =[appendString stringByAppendingString:@"myimage.png width='320' height='45' style='background-repeat:no-repeat'&gt;"]; // here unable to get local image with full path as given. appendString =[appendString stringByAppendingString:@"&lt;tr&gt;"]; appendString =[appendString stringByAppendingString:@"&lt;td align='left' width='57' height='31' style='padding: 6px 0 0 0' &gt;&lt;a href='/map/'&gt;&lt;img src="]; appendString =[appendString stringByAppendingString:absStirng];// here unable to get local image with full path as given.v appendString =[appendString stringByAppendingString:@"backButton.png&gt;&lt;/a&gt;&lt;/td&gt;"]; appendString =[appendString stringByAppendingString:@"&lt;td align='left' valign='middle' style='padding: 0 0 0 65px; font-family:Helvetica; font-size:21px ; font-weight:bold ; color:#FFF'&gt;Details&lt;/td&gt;"]; appendString =[appendString stringByAppendingString:@"&lt;/tr&gt;"]; appendString =[appendString stringByAppendingString:@"&lt;/table&gt;"]; returnString = [returnString stringByReplacingOccurrencesOfString:@"&lt;body&gt;" withString:appendString]; [webView loadHTMLString:returnString baseURL:[NSURL URLWithString:@"http://client url given here"]]; </code></pre> <p>What the problem is? how to get the local images path with out reference to baseURL.</p> <p>Please help me and any one help will be appreciated.</p> <p>Thank you, Madan Mohan. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload