I have created a splitview based application and in the appDelegate applicationdidFinishLaunchingWithOptions method i am showing a popup
(BOOL)application:(UIApplication *)applicationdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[self.window addSubview:splitViewController.view];
[self.window makeKeyAndVisible];
ModalScreenPopup *modalpopup = [[ModalScreenPopup alloc] init];
[modalpopup setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
[modalpopup setModalPresentationStyle:UIModalPresentationFullScreen];
[splitViewController presentModalViewController:modalpopup animated:NO];
[modalpopup release];
return YES;
}
(void) OpenTradeShowListingPopup
{
[splitViewController dismissModalViewControllerAnimated:YES];
TradeShowListing *modalTradeShowListing = [[TradeShowListing alloc] init];
[modalTradeShowListing setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
[modalTradeShowListing setModalPresentationStyle:UIModalPresentationFullScreen];
[splitViewController presentModalViewController:modalTradeShowListing animated:YES];
[modalTradeShowListing release];
}
ModalScreenPopup has 2 buttons name Synchronize and continue with app when I click on the synchronize button I am calling OpenTradeShowListingPopup method which is declared in the appDelegate. That method calls another popup but now first modal is getting dismissed but second popup is not getting called.
I have solved my problem by using UINavigationController this post really help me a lot A guy name JNOXX has helped me on Mac Forums here is the link.
Thanks 7KV7 for helping me.