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?