Skip to content

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

@sanctiont

Description

@sanctiont

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions