I have a presentModelViewControler (A) which pops up when there is no network connectivity. Now i have a another presentModelViewController (B) which shows calendar.
Difficulty is when B is active i.e. shows calendar view then if internet goes down then A doesnot get active.
I want when B is active if A starts i.e. internet goes down, then it release B and pop up A.
CalendarTestViewController *clau=[[CalendarTestViewController alloc]init];
if (clau.modalViewController==TRUE) {
[clau dismissModalViewControllerAnimated:YES];
[NSThread sleepForTimeInterval:0.2f];
}
[self.navigationController presentModalViewController:inter animated:YES];//network view controller
[inter release];
}
You have to do it in stages.
The second step is the one that isn’t obvious.
The way I did this is in my method that presents my equivalent of the network connectivity. I have a loop first watching the modalViewController property.
Something like: