Code Monkey home page Code Monkey logo

Comments (5)

dengzemiao avatar dengzemiao commented on June 26, 2024

@likaiwork Demo中测试??出现这个问题??我这边是么出现这个问题额。 如果你是导入项目使用 记得看下我简介下面的导入方式 手势的注意事项修改

from dzmebookread.

dengzemiao avatar dengzemiao commented on June 26, 2024

icon_1

你注意看看这里 在Demo中是可以的 但是导入新项目需要修改这里。

from dzmebookread.

likaiwork avatar likaiwork commented on June 26, 2024

解决了,多谢

from dzmebookread.

summer3300 avatar summer3300 commented on June 26, 2024

DZMReadMenu这个文件可以改一下,不带应用名。

/// 点击这些控件不需要执行手势
private let ClassString:[String] = ["ASValueTrackingSlider","UITableViewCellContentView","UISlider","DZMRMLeftView","DZMRMTopView","DZMRMBottomView","DZMHaloButton","DZMRMLightView","DZMRMColorView","DZMRMFuncView","DZMSettingView","UIButton"]

/// 手势拦截
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
    //let classString = NSStringFromClass(touch.view!.classForCoder)

    let classString = String(describing: type(of: touch.view!))

    if ClassString.contains(classString) {  
        return false
    }
    
    return true
}

谢谢这个开源,对我这个swift初学者很有用,学到了很多东西!

from dzmebookread.

dengzemiao avatar dengzemiao commented on June 26, 2024

@summer3300 多谢提醒 已做修改

from dzmebookread.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.