【问题标题】:How to display Magnifying glass of IOS when pangesture or tapgesture手势或手势时如何显示IOS的放大镜
【发布时间】:2015-04-02 10:01:02
【问题描述】:

当我用UITextView 轻按手势时,我想显示 iOS 7 的放大镜。

请帮帮我!!!!

【问题讨论】:

标签: ios iphone uitextfield loupe


【解决方案1】:

请检查下面的链接。所有库都与放大镜示例应用程序相关

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

【讨论】:

    【解决方案2】:

    将此代码添加到您已调用子类 UITextfield 的 .m 文件中

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多