I have an UITextView. Magnifying glass will appear if I select some text. Magnifying glass may appear below UITextView. Is it possible to restrict magnifying glass boundaries?

I have an UITextView. Magnifying glass will appear if I select some text. Magnifying glass may appear below UITextView. Is it possible to restrict magnifying glass boundaries?

You need to subclass the UITextView and override canPreformAction like this :
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
BOOL can = [super canPerformAction:action withSender:sender];
if(action == @selector(paste:) || action == @selector(selectAll:) || action == @selector(select:))
can = NO;
return can;
}
This is will prevent the UIMenuController To Appear .. but the magnify glass will still shown.