Code Monkey home page Code Monkey logo

Comments (3)

hon-key avatar hon-key commented on June 5, 2024

在UITableViewCell中使用,点击后didSelectRowAtIndexPath就不起效果了,被拦截了,有什么方法可以关闭吗?

如果你不打算让 NudeIn 接收任何事件的话:
可以将 NudeIn 的 userInteractionEnabled 设为 NO 以屏蔽事件的接收
如果你打算接收事件的话,比如对富文本的某一部分做事件的接收:

  1. 对富文本的某一部分做事件接收
  2. 对富文本的剩余部分做事件接收,并和 didSelectRowAtIndexPath 做一样的处理

from nudein.

hon-key avatar hon-key commented on June 5, 2024

原因在于 UITextView 对 UIResponder 的实现会截断响应链

from nudein.

hjrcn avatar hjrcn commented on June 5, 2024

谢谢!之前是有想到要设置userInteractionEnabled,不过设置为Yes,搞错了,没起效果.

from nudein.

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.