Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This wasn't the right approach to handle this situation; instead of loading the image in an image view and having to keep always in mind the height and width and all that stuff...The easiest and most reliable solution was just to load the image inside the html string and that's it ! Just be sure of the baseURL as so and everything will be ok no matter what orientation you take :</p> <pre><code> NSString* extension = @"gif"; NSString* strRR = [NSString stringWithFormat:@"%@.%@", authorNAme2,extension]; NSString *path = [[NSBundle mainBundle] bundlePath]; //NSLog(@"This is the path %@", path); NSURL *baseURL = [NSURL fileURLWithPath:path]; // NSLog(@"this is the base URL %@",baseURL); NSString *cachePath = [NSString stringWithFormat:@"%@/%@", path,strRR]; NSString * htmlString = [NSString stringWithFormat:@"\ &lt;html&gt;\ &lt;table width='100%%'&gt;\&lt;tr&gt;\&lt;td&gt;\ &lt;body&gt;\ &lt;p style = 'font-size:30px;'&gt; %@ &lt;\p&gt;\ &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align ='center'&gt;&lt;br&gt;&lt;img src='%@' width='60%%' \&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/body&gt;\ &lt;/table&gt;\ &lt;/html&gt;",authorNAme , cachePath]; // NSString *selection = [WebV2 stringByEvaluatingJavaScriptFromString:@"window.getSelection().toString()"]; // NSLog(@"*/*/*/*/**/*/*/*/*/*/*//*/ This is your selection mate %@" , selection); WebV.opaque = NO; WebV.backgroundColor = [UIColor clearColor]; [self.WebV setScalesPageToFit:YES]; [self.WebV loadHTMLString:htmlString baseURL:baseURL]; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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