I have html string which i want to load in web view but i want that there are some values which i am getting as result so i want to add them also in this at run time like
I have a string belwo i want this value to be added with line
so that it should display Number of dogs that visit clinic ? 12 like this
NSString*dogspermonth=12;
Number of dogs that visit clinic? <br>
NSString*htmlString=@"<HTML>
<HEAD>
<TITLE>JAMSHED ALI</TITLE>
</HEAD>
<BODY background="InsideBackgroundPage2.png">
<H6><font color="white">Cerenia Motion Sickness<br>
Model</br>Report
<p>Inputs</p>
<br>
Number of dogs that visit clinic? <br>
Number of dogs with motion sickness <br>
Dogs treated with (per year): <br>
Cerenia <br>
Other prescription drugs<br>
Other means<br>
Other the counter drugs<br>
<p>
Average cost to client for Cerenia prescription<br>
Clinic markup<br><br>
Average number of dogs treated for car sickness<br>
Total number of dogs treated for car sickness<br>
Dogs treated with Cerenia<br>
Dogs treated with other drugs or interventions<br>
<br>
Profit for each Cerenia prescription<br>
Annual Profit earned from Cerenia treatment<br>
Potential annual profit increase from using Cerenia to treat all dogs with motion sickness<br>
Maximum annual profit if all dogs with car sickness were treated with Cerenia<br>
</BODY>
</head>";
first of all
next u can use stringWithFormat like:
hope it helps. happy coding 🙂