How to display Magnifying glass of IOS when pangesture or tapgesture

1.3k views Asked by At

I want to display magnifying glass of iOS 7 when I tap gesture with UITextView.

Please help me!!!!

2

There are 2 answers

0
Santosh Reddy On

please check below link.all lib's are related to Magnifying glass sample app

https://github.com/search?l=Objective-C&q=magnifying+glass&type=Repositories&utf8=%E2%9C%93

0
user3148898 On

add this code in .m file where you have called subclass UITextfield

   -(void)addGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer 
  {
    //Prevent zooming but not panning
     if ([gestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]]) 
        {
              gestureRecognizer.enabled =YES;
        }
       [super addGestureRecognizer:gestureRecognizer];
        return;
   }