removeFromSuperview is not removing view calling from another class
<p>i am getting the web services from the .net web server.</p>

<p>while in the process (getting data) i  am displaying a subview with activity indicator.</p>

<p>After completing getting data i need to close that view.</p>

<p>i have two classes one is myclassviewcontroller,webservices </p>

<p>Basically i am writing code to get web services webservices.</p>

<p>In webservices class at</p>

<p>-(void)connectionDidFinishLoading:(NSURLConnection *)connection i call  myclass like this.</p>

<pre><code>myclassviewcontroller *obj = [[myclassviewcontroller alloc]init];
[obj mymethod];
</code></pre>

<p>At myclassviewcontroller i write this code for my method.</p>

<ul>
<li><p>(void)mymethod {</p>

<p>[loadview removeFromSuperview];
}</p></li>
</ul>

<p>the method is executed but view is not removed.</p>

<p>I already declared it in myclassviewcontroller.h class also. </p>

<p>i am checking this by keeping some text in NSlog</p>

<p>But if i calling this mymethod in myclassviewcontroller.m using timer then it removes view. </p>

<p>what the wrong.</p>

<p>can any one please help me. </p>

<p>I think it may be understand what is my problem.Let me place comment if not.</p>

<p>Thank u in advance.</p>
