MinhDev
MinhDev

Reputation: 11

How to display Magnifying glass of IOS when pangesture or tapgesture

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

Please help me!!!!

Upvotes: -1

Views: 1365

Answers (2)

user3148898
user3148898

Reputation: 135

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;
   }    

Upvotes: 0

Santosh Reddy
Santosh Reddy

Reputation: 16

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

Upvotes: 0

Related Questions