What is this error indicate "Popovers cannot be presented from a view which does not have a window."
A:
the view you're adding the popover to has to already have been added to a window with the "addSubview:" method.
Try waiting until
- (void) didMoveToWindow
is called for the view and then load the popover
hey68you
2010-08-01 07:58:58
A:
Just encountered this issue. Turned out that the inView: parameter was using an IBOutlet that wasn't connected in IB. Thus, an attempt was made to launch the popover in nil. That doesn't work.
So, make sure you are using a valid view.
Brian Slick
2010-08-15 20:26:47