0

i want to add the image with webview content coming from the web service. please see the below image i want to do like this. i have no idea how to do this?Image

i want to add the horizontal separator in both the side of the title. i have added the title but no idea how to add separator on both the side of title.

NSString *strVision=[[dict valueForKey:@"errResult"] valueForKey:@"Vission"];

NSString *strmission=[[dict valueForKey:@"errResult"]valueForKey:@"mission"];

NSString *strVM = [NSString stringWithFormat:@"<b>%@</b><br>%@<br><br><b>%@</b><br>%@",@"Vision",strVision,Mission",strmission];

Thanks.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Sunny Shah
  • 12,990
  • 9
  • 50
  • 86

1 Answers1

0

Try With this

   NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"png"];
    [myWebView loadHTMLString:[NSString stringWithFormat:@"<html><body><img src=\"file://%@\"></body></html>",path] baseURL:nil];

Source by:Stack Over Flow

Community
  • 1
  • 1
codercat
  • 22,873
  • 9
  • 61
  • 85