How can we place the activity indication until we get the response from server side
<p>I am new to iphone.I am doing one project in that there is a login screen when ever i am click submit button in login screen it will sends a request to server for validation after some time it will gives response i am showing that response in alert view to the user.But the actual problem is when ever user clicks the submit button i am placing some activity indicator using timer for 1sec but the response comes in 5sec so the activity indicator stops before 4sec.So,how can i place the activity indicator until the response comes from server side.If anybody knows this please help me.</p>
