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

GMGridViewActionDelegate not getting called #183

Open
nmock opened this issue Jun 5, 2013 · 1 comment
Open

GMGridViewActionDelegate not getting called #183

nmock opened this issue Jun 5, 2013 · 1 comment

Comments

@nmock
Copy link

nmock commented Jun 5, 2013

I'm not sure why GMGridViewActionDelegate isn't getting called in my code? I am implementing / setting the actionDelegate property, seems like the gesture isn't getting passed through (I have even tried the suggested: #68)

I am using a grid of UIButtons, for a workaround for the time being, I am using setting tags / adding actions to buttons to handle (which seems to be working)

self.tagsGridView = [[GMGridView alloc] initWithFrame:CGRectMake(0, 4, tagViewContainer.frame.size.width, tagViewContainer.frame.size.height - 6)];
self.tagsGridView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
self.tagsGridView.backgroundColor = [UIColor clearColor];
self.tagsGridView.showsVerticalScrollIndicator = NO;
self.tagsGridView.itemSpacing = 12;
self.tagsGridView.minEdgeInsets = UIEdgeInsetsMake(12, 12, 12, 12);
self.tagsGridView.centerGrid = YES;
self.tagsGridView.delegate = self;
self.tagsGridView.actionDelegate = self;
self.tagsGridView.dataSource = self;
self.scrollsToTopScrollview = self.tagsGridView;
[tagViewContainer addSubview:self.tagsGridView];

Any ideas?

@ricsantos
Copy link
Contributor

Have you resolved this? It is a bit hard to tell what is wrong with only that snippet of code.

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

2 participants