GithubHelp home page GithubHelp logo

Comments (4)

hilen avatar hilen commented on May 15, 2024 1

可以持有一个临时的 YYTextView,当触控到一个 YYTextView 的时候,设置这个临时的为当前的 YYTextView,这样是不是可以做到控制界面上就显示一个 UIMenu?

from tswechat.

hilen avatar hilen commented on May 15, 2024

你可以尝试写正则匹配出来你想要的文字对它进行可选操作。
就好比里面解析电话号码一样。

from tswechat.

EllisShen avatar EllisShen commented on May 15, 2024

@hilen 謝謝你的回覆 我成功的把YYLabel 改為YYTextView, 現在每個氣泡可以被選擇並且選擇後會顯示出UIMenu。 不過我遇到個問題,每個YYTextVie選取後的UIMenu都是獨立的,就很容易出現,一個氣泡選取後,使用者又選擇了另外一個氣泡,兩個氣泡的選擇區都不會消失。 在您的project裡面,在那邊可以呼叫textField.endEditing?

from tswechat.

EllisShen avatar EllisShen commented on May 15, 2024

謝謝@hilen,這個主意挺好的,我來試試看

from tswechat.

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.