how to change the UILabel value base don uiwebview action
<p>Iam developing one application.In that I want to change the value of <code>UILabel</code> if <code>UIWebview</code> finish loading.</p>

<p>First in webview load the below html file</p>

<pre><code>    &lt;html&gt;
    &lt;head&gt;
    &lt;meta http-equiv=“content-type”content=“text/html;charset=utf-8″ /&gt;
    &lt;script src=“test-1.js”&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>

<p>And below is the .js javascript file</p>

<pre><code>    function add(input1,input2) 
    {
        int i = input1 + input2;
        return i;
    };
</code></pre>

<p>So after finishloading the webview I written the code like this</p>

<pre><code>   -(void)webViewDidFinishLoad:(UIWebView *)webView
   {

      NSString *str=[[NSString alloc]initWithFormat:@"add(%d,%d)",10,5];

      NSLog(@"%d",[[web stringByEvaluatingJavaScriptFromString:str] integerValue]);
      label.text=[[web stringByEvaluatingJavaScriptFromString:str] integerValue];
   }
</code></pre>

<p>But i didn't get any value in console and label value also not changed.So how to change the value of label.</p>
