Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover not re-appearing after calling dismissPopoverAnimated #54

Open
boazin opened this issue Mar 22, 2015 · 2 comments
Open

Popover not re-appearing after calling dismissPopoverAnimated #54

boazin opened this issue Mar 22, 2015 · 2 comments

Comments

@boazin
Copy link

boazin commented Mar 22, 2015

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
Copy link
Author

boazin commented May 6, 2015

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

@sammcewan
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants