rnystrom / RNGridMenu

A grid menu with elastic layout, depth of field, and realistic animation.
MIT License
1.28k stars 192 forks source link

willDismissWithButtonIndex:option: not being called #3

Closed nfitzpatrick closed 11 years ago

nfitzpatrick commented 11 years ago
- (void)gridMenu:(RNGridMenu *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex option:(NSString *)option
{
    NSLog(@"selected index %i with option %@",buttonIndex,option);
}

is not being called, the selected button is not being reported. Nothing is being logged.

slsamliu commented 11 years ago

There is an extra semicolon in if ([self.delegate respondsToSelector:@selector(gridMenu:willDismissWithButtonIndex:option::)

remove that will fix this issue

rnystrom commented 11 years ago

Fixed in https://github.com/rnystrom/RNGridMenu/commit/b490c6e623f075cf9f6d541931e0c348b4bd5cd0. Good catch.