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
  • 307,833
  • 40
  • 508
  • 550
Sunny Shah
  • 12,842
  • 9
  • 49
  • 82

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,159
  • 9
  • 58
  • 84