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

Returning NO from shouldShowMenuAtPoint pops menu in far upper left anyway and freezes UI #7

Open
sanctiont opened this issue Apr 11, 2014 · 0 comments

Comments

@sanctiont
Copy link

In the UICollectionView example, simply tap and hold in the gutter between cells (or add return NO; to the first line of shouldShowMenuAtPoint).

See the partial g+ button in the screenshot.

ios simulator screen shot apr 11 2014 1 37 45 pm

I have a hack-ish workaround:

if (self.dataSource != nil && [self.dataSource respondsToSelector:@selector(shouldShowMenuAtPoint:)] && ![self.dataSource shouldShowMenuAtPoint:pointInView]){
[self removeFromSuperview]; //rip self back out of view hierarchy, seems to correct.
return;
}

Would you like a pull on this, or do you have a better idea of what is going wrong and how to fix it?

Good stuff otherwise!
--DT

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

No branches or pull requests

1 participant