gmoledina / GMGridView

A performant Grid-View for iOS (iPhone/iPad) that allows sorting of views with gestures (the user can move the items with his finger to sort them) and pinching/rotating/panning gestures allow the user to play with the view and toggle from the cellview to a fullsize display.
MIT License
2.3k stars 512 forks source link

GMGridViewActionDelegate not getting called #183

Open nmock opened 11 years ago

nmock commented 11 years ago

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?

ricsantos commented 10 years ago

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