WYPopoverController icon indicating copy to clipboard operation
WYPopoverController copied to clipboard

Popover not re-appearing after calling dismissPopoverAnimated

Open boazin opened this issue 9 years ago • 2 comments

On iOS7 only (iOS8 it's OK) - when manually doing [popoverController dismissPopoverAnimated:YES];

And then trying to re-open the popover (using presentPopoverFromRect)

In the original project I got observation leak. On this fork (thanks for maintaining BTW) I don't get an error but I'm experiencing the same issue.

The error I got when used the original project:

An instance 0x7fa658d31340 of class NewChapterViewController was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info:
<NSKeyValueObservationInfo 0x7fa65b01eda0> (
<NSKeyValueObservance 0x7fa658ca31d0: Observer: 0x7fa658d33220, Key path: preferredContentSize, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x7fa658c829f0>

Tried to debug it - it seems that this is the preferredContentSize but this is as far as I succeeded

boazin avatar Mar 22 '15 12:03 boazin

I can confirm that this issue appears when the popover is originating from a tableviewcell. If the cell is out of screen and gets reused, it is OK

boazin avatar May 06 '15 12:05 boazin

Have you got an example project of it doing this? It's a pretty specific scenario.

sammcewan avatar May 14 '15 09:05 sammcewan