GMGridView icon indicating copy to clipboard operation
GMGridView copied to clipboard

GMGridViewActionDelegate not getting called

Open nmock opened this issue 12 years ago • 1 comments

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: https://github.com/gmoledina/GMGridView/issues/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?

nmock avatar Jun 05 '13 21:06 nmock

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

ricsantos avatar Dec 12 '13 01:12 ricsantos