Up vote 0 down vote favorite share g+ share fb share tw.
This is a follow up question to Dismissing a UIpopover regarding how to dismiss a popover. I have a similar situation but its a UIPopover in the context of a Master Detail iPad application. I basically create TWO Navigation Controllers (this is off a recommendation from CS193P), one for the Master and one for the Detail.
In my AppDelegate, I have the following to set up my UISplitViewController #pragma - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Creating the EpisodesViewController (used on both iPhone and iPad) EpisodesViewController *navControllerRootController = EpisodesViewController alloc init; UINavigationController *masterNav = UINavigationController allocinitWithRootViewController:navControllerRootController; navControllerRootController release; masterNav. Title=@"Episodes"; if (self iPad) { EpisodeDetailViewController *detailViewController = EpisodeDetailViewController allocinit; UINavigationController *detailNav = UINavigationController allocinitWithRootViewController:detailViewController; detailNav.navigationBar. TintColor = UIColor blackColor; self.
SplitviewController = UISplitViewController alloc init; self. SplitviewController. Delegate=detailViewController; self.
SplitviewController. ViewControllers = NSArray arrayWithObjects:masterNav,detailNav,nil; window setRootViewController:self. SplitviewController; detailViewController release; detailNav release; }else { window setRootViewController:masterNav; } masterNav release; self.
Window makeKeyAndVisible; return YES; } So. The question is... how do I get a reference to the UIPopover that appears when I click the "Episodes" button. What I'd like to do is implement the solution from that other thread, but I don't have a reference (that I know of) to my popover so I can dismiss it.
Edit made the way that I created the detailNav the same as the way I created masterNav to avoid clouding the main issue. Ipad ios4 uisplitviewcontroller uipopovercontroller uipopover link|improve this question edited May 18 '11 at 20:33 asked May 18 '11 at 20:23JMattos164.
Okay, I've for it figured out. – JMattos May 18 '11 at 20:55.
Okay, I've got it. I used a combination of the notification approach described here Dismissing a UIpopover .. I post th notification from the - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath in my Master view and I have an instance variable pointing to the UIPopover as described here UISplitViewController in portrait: how to hide master popover programatically? Which I use to actually dismiss the popover.
Works like a charm. :-).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.