will show NSObject show UIActivityIndicatorView?
<p>i use NSobject class inwhich i have NSURLConnection,but how can i show UIActivityIndicatorView when connection established and finished.....?i tried
in appdelegate.m file inwhich i have mentioned in appdidfnish method</p>

<pre><code>    Search = [[UIActivityIndicatorView alloc]  
    initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
     [Search setCenter:CGPointMake(160, 240)]; 
     [window addSubview: Search];
</code></pre>

<p>and also i have individual method like</p>

<pre><code>      -(void)anim
{
   [search startAnimating];
}
</code></pre>

<p>but if i call this method through appdelegate object in NSobject.m page, it will not work..
what i have to do? any help? please?</p>
