GMGridView
GMGridView copied to clipboard
GMGridViewActionDelegate not getting called
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?
Have you resolved this? It is a bit hard to tell what is wrong with only that snippet of code.