I'm facing a very strange problem. I'm using a tableView for menu purpose. It is working fine. But the problem is that in last row of that table ,only top half area fires did select event. When I click on mid of the last row did select does not work. And clicking on top half of the cell didSelect is working fine. Can anyone elaborate it?
Here is screenshot I'm using tableView as:-
here is the code I am setting table's y position on didSelect of backTableView.
UITableView *menuTable=(UITableView*)[self.view viewWithTag:5];
CGRect rect=[menuTable frame];
rect.origin.y-=rect.size.height;
[UIView animateWithDuration:0.3 animations:^{
[menuTable setFrame:rect];
} completion:^(BOOL finished) {
[tableView deselectRowAtIndexPath:[tableView indexPathForSelectedRow] animated:YES];
isMenuOpen=YES;
[bgView setFrame:self.view.frame];
[self.view insertSubview:bgView belowSubview:menuTable];
for (UIView *view in self.view.subviews) {
if (view!=menuTable && view.tag!=44) {
[view setUserInteractionEnabled:NO];
}
}
NSLog(@"animation completed");
}];
Setted rowHeight to 40
bringSubViewtoFront
TableHeight to 80
What can I do now?
Any one will be causing the problem
You could also use the visual debugging tools added to Xcode to see views order in a 3d fashion, and check which one is over the other.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With