When my application is launched, I am receiving an xml by hitting a service url and saving it in local db.I have applied reachability code to check if the connectivity is down.If its down ,then it will display an alert and won't proceed further as user interaction is disabled.However,there are times when internet connectivity goes to unreachable while getting the response.At this point the user interaction gets enabled as I get the response but with corrupted data which makes the application to crash when I want to use some data which is not there in xml.I am not able to follow a correct approach towards this.
Please help.