如何在pangesture或tapgesture时显示IOS的放大镜

时间:2015-04-02 10:01:02

标签: ios iphone uitextfield loupe

当我点击UITextView的手势时,我想要显示iOS 7的放大镜。

请帮帮我!!!!

2 个答案:

答案 0 :(得分:0)

请查看下面的链接。所有lib与放大镜样本应用

有关

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

答案 1 :(得分:0)

在.m文件中添加此代码,您已在其中调用子类UITextfield

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