Comments (4)
可以持有一个临时的 YYTextView,当触控到一个 YYTextView 的时候,设置这个临时的为当前的 YYTextView,这样是不是可以做到控制界面上就显示一个 UIMenu?
from tswechat.
你可以尝试写正则匹配出来你想要的文字对它进行可选操作。
就好比里面解析电话号码一样。
from tswechat.
@hilen 謝謝你的回覆 我成功的把YYLabel 改為YYTextView, 現在每個氣泡可以被選擇並且選擇後會顯示出UIMenu。 不過我遇到個問題,每個YYTextVie選取後的UIMenu都是獨立的,就很容易出現,一個氣泡選取後,使用者又選擇了另外一個氣泡,兩個氣泡的選擇區都不會消失。 在您的project裡面,在那邊可以呼叫textField.endEditing
?
from tswechat.
謝謝@hilen,這個主意挺好的,我來試試看
from tswechat.
Related Issues (20)
- 录音过短时没有readyStopRecord HOT 3
- xcode10 跑不起来 HOT 8
- 录音按钮在真机上点击时,左边不会高亮,右边会,实际button是有响应的
- 大佬,xcode10.1跑不起来. HOT 1
- 朋友圈的东西还没弄呢? HOT 2
- 第一次进入界面,数据没有铺满全屏的时候有一些问题 HOT 1
- xcode10.2.1无法编译 HOT 3
- Xcode 10.3无法编译通过 HOT 5
- Rxswift BSImagePicker都不能变异通过 HOT 2
- swift4版本应该保留一个分支 HOT 2
- RxSwift某些方法不存在 HOT 11
- 表情位置问题
- Error in running! How to solve this one? HOT 1
- 短时间录音多次尝试就会崩溃,大概零点几秒左右,初步判断是因为AudioRecordManager的部分常量声明成!(绝对值),应该默认给个值或者定义成?,导致错误的原因就是为nil
- Xxx
- 无法运行:Use of undeclared identifier 'kTarget_Enterprise' HOT 1
- 添加朋友圈模块 HOT 1
- 请问聊天详情中为什么没有视频的Cell?
- TimedSilver
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tswechat.