YBAttributeTextTapForSwfit icon indicating copy to clipboard operation
YBAttributeTextTapForSwfit copied to clipboard

一行代码添加文本点击事件(swfit4.2版本)/a fast way to implement click event text(for swfit4.2)

Results 8 YBAttributeTextTapForSwfit issues
Sort by recently updated
recently updated
newest added

包括textfield,button都会触发【yb_getTapFrame】这个方法,导致崩溃

1. swift4中只需改这个地方就可以兼容. ``` func nsRange(from range: Range) -> NSRange { // let from = range.lowerBound.samePosition(in: utf16) // let to = range.upperBound.samePosition(in: utf16) // utf16.distance(from: utf16.startIndex, to: from) //utf16.distance(from: from, to:...

Swift 版有问题呢,除了一些强解包,整体逻辑也有些问题,作者最好在 ReadMe 中建议下使用 OC 版本。 最后十分感谢~

当UILabel收到TouchBegin end之类的并不一定是YBAttributeText, 建议继承而不是extension