I am using asihttprequest to load data from a remote database upon loading a particular view controller. Currently there is a lag or so it seems between the user pressing the button to push a new view controller and the view actually appearing...I think this is the time taken to query the database and. retrieve data.
I would like a UIActivityIndicator to appear over the top of the current view between the startSynchronous method call and the triggering of setDidFinishSelector (the method called when response has been given) - i.e. while the data is loading. I know there is documentation in ASI site but I'm struggling to find any example that help to implement what I need...
How is this possible?
Please go through the link which covers ASIHTTPRequest and has source code for UIActivityIndicator along with that....
also go through the stackoverflow link