rnystrom / RNGridMenu

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

Tapping button doesn't dismiss menu #26

Open smpdawg opened 10 years ago

smpdawg commented 10 years ago

I had a table view controller inside a tab view controller. If I show the menu from the tab bar controller it will dismiss as expected. If I try to create and show the menu from the table view controller, the menu never dismisses but instead disappears very briefly and reappears. My workaround was the change the call to show if I was in the table view controller. The delegate is still set to self. Here is the before and after.

Before: [av showInViewController:self center:CGPointMake(self.view.bounds.size.width/2.f, self.view.bounds.size.height/2.f)];

After: [av showInViewController:self.parentViewController center:CGPointMake(self.view.bounds.size.width/2.f, self.view.bounds.size.height/2.f)];

Hope this helps anyone else that had the same thing happen.