iPhone: Hide/Show controls under response
<p>I am trying to show and hide three controls like UIBUtton, UILabel etc. in some scenario. I am doing this using below two functions.</p>

<pre><code>- (void) hide
{
    usernameField.hidden=YES;
    passwordField.hidden=YES;
    myLabel.hidden=YES;    
}

- (void) show
{
    usernameFieldField.hidden=NO;
    passwordField.hidden=NO;
    myLabel.hidden=NO;
}
</code></pre>

<p>But, when i call these functions under some server response code, that is i'm trying to show under connectionDidFinishLoading in success/failure server response..Its not doing that. i.e. Its not showing or hiding these controls in these situations..But same time, if i call these functions under a button click, its showing/hiding controls..So, Would these functions be called only under some events like button click? Can't we call from anywhere like i'm trying to do?</p>

<p>Please advise!</p>
