I am trying to remove a View after getting data from webservice.
But when I removes the view using
[self.view removeFromSuperView];
the view gets removed before loading the required data. I need to load the data and then remove the view. Is there a way to implement this?
if you are using NSURLConnection then you should use the delegates methods which is
-(void)connectionDidFinishLoading:(NSURLConnection *)connection
Here you can easily do the removing part of the view. and it will not crash unless got response.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With