While displaying a popover controller for a second time (after dismissing it and then re-displaying it), I get the following error:
Terminating app due to uncaug
If your popover is stored as strong reference, it can't be deallocated. The only possibility when it can be deallocated is in the situation when the object containing the strong reference (self
in your example) is also deallocated.
I think the important question is what are you doing with your views when the popover is visible.
If you have already checked this, than it must be a framework bug.
I have run into the same problem and fixed it by retaining the popover controller in a strong instance variable as suggested AND explicitly dismissing it before resetting the property with the new popover controller allocated in in the second run of the action. In your example, you should add something like this:
- (IBAction)createNewScore:(id)sender {
if (self.pc) {
[self.pc dismissPopoverAnimated:YES];
}