Please refer to NSNOtification Class
.
Please call this in the ViewDidLoad
method of the class where you want to know whether download is finished
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(finished:) name:@"requestfinishes" object:nil];
and call this is the (void)didDownloadMap
method
[[NSNotificationCenter defaultCenter] postNotificationName:@"requestfinishes" object:nil userInfo:nil];