TSTextMapper:它在 UILabel 内映射文本并允许您检测点击的单词-源码

上传者: 42099151 | 上传时间: 2021-07-03 14:06:17 | 文件大小: 5.58MB | 文件类型: ZIP
文本映射器 该解决方案不堪重负且过于复杂。 它可以工作,但系统正在这样做,并且 TextKit 具有所有需要的 API。 很少有类允许您在UILabel内映射文本并使文本内的文本可点击,这意味着它增加了检测哪个单词被点击的能力。 它既简单又强大。 演示影片tstextmapper.mov附在 repo 中并可在。 如何 创建TSTextMapper 。 选择文本映射器应该如何工作的少数方法之一mapTextAndMakeAllTappable或mapTextWithTappableRanges 当您想获取单词时调用textForPoint方法。 mapTextAndMakeAllTappable方法使所有文本均可点击。 mapTextWithTappableRanges方法仅在传递的范围内mapTextWithTappableRanges可点击的文本。 textForPoin

文件下载

资源详情

[{"title":"( 25 个子文件 5.58MB ) TSTextMapper:它在 UILabel 内映射文本并允许您检测点击的单词-源码","children":[{"title":"TSTextMapper-master","children":[{"title":".gitignore <span style='color:#111;'> 495B </span>","children":null,"spread":false},{"title":"TSTextMapper.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"tomkowz_priv.xcuserdatad","children":[{"title":"UserInterfaceState.xcuserstate <span style='color:#111;'> 40.94KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 18.49KB </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"tomkowz_priv.xcuserdatad","children":[{"title":"xcschemes","children":[{"title":"TSTextMapper.xcscheme <span style='color:#111;'> 4.14KB </span>","children":null,"spread":false},{"title":"xcschememanagement.plist <span style='color:#111;'> 574B </span>","children":null,"spread":false}],"spread":true},{"title":"xcdebugger","children":[{"title":"Breakpoints_v2.xcbkptlist <span style='color:#111;'> 781B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"tstextmapper.mov <span style='color:#111;'> 5.83MB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.06KB </span>","children":null,"spread":false},{"title":"Classes","children":[{"title":"TSTextSceneView.swift <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"TSTextRefDetector.swift <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"TSTextMapper.swift <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false},{"title":"TSTextNodeView.swift <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"TSTextAnalyzer.swift <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false},{"title":"TSTextSize.swift <span style='color:#111;'> 504B </span>","children":null,"spread":false}],"spread":true},{"title":"TSTextMapper.podspec <span style='color:#111;'> 576B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"TSTextMapperTests","children":[{"title":"TSTextMapperTests.swift <span style='color:#111;'> 918B </span>","children":null,"spread":false},{"title":"Info.plist <span style='color:#111;'> 754B </span>","children":null,"spread":false}],"spread":true},{"title":"TSTextMapper","children":[{"title":"ViewController.swift <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"Info.plist <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"Images.xcassets","children":[{"title":"AppIcon.appiconset","children":[{"title":"Contents.json <span style='color:#111;'> 585B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Base.lproj","children":[{"title":"LaunchScreen.xib <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"Main.storyboard <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"AppDelegate.swift <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明