How can I access the members of the controller that is calling a UIPopoverController inside that UIPopoverController?
The controller calling the UIPopoverController is set as a delegate on the popup (not sure if this helps me):
self.popover = [[UIPopoverController alloc] initWithContentViewController:theView];
[self.popover setDelegate: self];
You access them in the same way as you access members from any other view controller: you need a reference to the parent view controller. For example, you could have a member variable on your popover view controller that points to the parent view controller. (You would want to make such a reference weak or unretained.) This member is often a “delegate” of the popover view controller.
You could set this on your
theViewbefore presenting it, or pass it to its initializer.(I’m not sure, but you could also try looking at
parentViewControllerorpresentingViewControllerof the popover view controller.)