Open ishunyu opened 10 years ago
Currently working around it by doing this
- (IBAction)menuBarButtonPressed:(UIBarButtonItem *)sender
{
if (self.tableView.contentOffset.y < 0) {
return;
}
// Stop the table
[self.tableView setContentOffset:self.tableView.contentOffset animated:NO];
[HMTabBarViewController menuBarButtonPressedForViewController:self];
}
I'm seeing this same problem. The workaround works but would like to see the root problem fixed.
Looks like the author hasn't touched this repo in a while.
Another way is if you call
[gridMenu showInViewController:controller center:CGPointMake(self.view.bounds.size.width/2.f, self.view.bounds.size.height/2.f)];
with the parent tabbarviewcontroller instead of the children viewcontroller(in this case the tableviewcontroller) the whole screen will be blurred out and I think that might solve the problem too. Don't have time to test right now.
Hi great work on this project, I'm loving it. However there is one little bug that probably hasn't seen very often.
I have a table view controller inside a tab bar view controller. Currently, I make the call from the table view controller like this
and then inside the tab bar view controller:
and
So this works great!
However, if I scroll the table view, and while the table view is moving, I try to open the grid menu, the grid menu will also move with the table view and it results in the grid menu either shifted up or down.
Next I tried to stop the table from moving before calling the grid menu, it works most of the time. However if the table view is in the process of refreshing(where you pull down the table and a spinner spins at the top). The grid menu will also be shifted.