iPhone -trouble with a loading data from webservice into a tableview

Posted by medampudi on Stack Overflow See other posts from Stack Overflow or by medampudi
Published on 2011-11-14T21:48:44Z Indexed on 2011/11/18 17:51 UTC
Read the original article Hit count: 177

I am using a Window based application and then loading up my initial navigationview based controller. After loading it if the user is not registered/ does not have a credentials present then it takes the user to a login view controller .

loginViewController *sampleView = [[loginViewController alloc] initWithNibName:@"loginViewController" bundle:nil];
[self.navigationController presentModalViewController:sampleView animated:YES];
[sampleView release];

then right after that i try to load the table with data that i get from a webservice using asiHTTP .. for this question lets say it takes 3 seconds time to get the data and then deserialize it . now... my question is it works out okey in the later runs as I store the username and password in a seure location... but in the first instance.... i am not able to get the data to laod to the tableview... I have tried a lot of things...

1. Initially the data fetch methods was in a diffrent methods.. so i thought that might be the problem as then moved it the same place as the tbleviewController(navigationController)

2. I event put in the Reload data at the end of the functionality for the data parsing and deserialization... nothing happens.

3. i did not understand the concept of @property and alll....

4. The screen is black screen with nothing displayed on it for a good 5 seconds in the consecutive launches of the app.... so could we have something like a MBPorgressHUD implemented for the same.

could any one please help for these scenarios and guidance as to what paths to take from here...

© Stack Overflow or respective owner

Related posts about iphone

Related posts about web-services