@pooja i had worked on the same situation....in my case i was downloading the zip file from web server and i was saving that file to the documentsDirectory
itself.Now as you are saying that how will user came to know that the file is downloaded or not. Then in this case i would suggest you or what i had done was.....
//Your request
ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:url] autorelease];
[request setDelegate:self];
[request setDownloadDestinationPath://Your path here];
[request setDidFailSelector:@selector(zipFileDownloadFailed:)];
[request setDidFinishSelector:@selector(zipFileDownloaded:)];
- (void)zipFileDownloaded:(ASIHTTPRequest *)request{
UIAlertView *Downloaded = [[UIAlertView alloc] initWithTitle: @"Successfully Downloaded" message: @"" delegate:nil cancelButtonTitle: @"Ok" otherButtonTitles: nil];
[Downloaded show];
[Downloaded release];
Downloaded = nil;
}
- (void)zipFileDownloadFailed:(ASIHTTPRequest *)request{
UIAlertView *DownloadFailed = [[UIAlertView alloc] initWithTitle: @"Download Failed" message: @"" delegate:nil cancelButtonTitle: @"Ok" otherButtonTitles: nil];
[DownloadFailed show];
[DownloadFailed release];
DownloadFailed = nil;
}
Now this alert will conform the user that the file is successfully downloaded or not....Now use this file wherever you want in your app...user is now conformed that the file is downloaded or not ......no need to show that to him at that place where you are downloading the file that will be something which will be so complicated.
Edited my code as per your last comment : Yes you have to unzip that file whose zip file you had downloaded within your application only..How will user unzip that file .....you have to unzip that file programatically and you have to show the contents of that file in your application.....Look there is a predefined API to zip and unzip files so try doing some searches and unzip your file in your application....
Also have a look on iPhone Unzip code as asked earliar and also download the ziparchive from here......i had taken help from all of them.
Hope you got my point and this answer will be useful to you.
Good Luck!