Ok, I made a workaround and decided myself ...
My links are at the top and bottom of the page, so I got the screen coordinates using the following code, and if pos.y <some value and pos.y> some value, then do not display the menu ...
UITouch * touch = [touches anyObject];
CGPoint pos = [touch locationInView: [UIApplication sharedApplication].keyWindow];
NSLog(@"Position of touch: %.3f, %.3f", pos.x, pos.y);
Hope this helps someone ...
source
share