iOS 上的手势操作的库

上传者: 38644780 | 上传时间: 2021-04-05 12:06:01 | 文件大小: 98KB | 文件类型: ZIP
作者igormatyushkin014,源码Sensitive,Sensitive 提供了一种新的方法来操作 iOS 上的手势操作的库。类似于 Android View 子类上的 onClick handler。我们可以将原有的 UIGestureRecognizers 抛弃掉。这样的好处是方便了原来的 Android 开发者哦。

取而代之的是,使用简单的 blocks 方法诸如:onTap、onPinch、onSwipe 等等。。。每一个 UIView 对象都使用 extension 实现了这些方法。更多方法,看我一一道来。

文件下载

资源详情

[{"title":"( 52 个子文件 98KB ) iOS 上的手势操作的库","children":[{"title":"Sensitive-master","children":[{"title":"Logo","children":[{"title":"logo-1024-300.png <span style='color:#111;'> 29.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"Demo","children":[{"title":"SensitiveDemo","children":[{"title":"SensitiveDemo","children":[{"title":"Assets.xcassets","children":[{"title":"Sensitive","children":[{"title":"Contents.json <span style='color:#111;'> 62B </span>","children":null,"spread":false},{"title":"logo-1024-1024.imageset","children":[{"title":"logo-1024-1024.png <span style='color:#111;'> 41.05KB </span>","children":null,"spread":false},{"title":"Contents.json <span style='color:#111;'> 311B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"AppIcon.appiconset","children":[{"title":"Contents.json <span style='color:#111;'> 585B </span>","children":null,"spread":false}],"spread":true},{"title":"Contents.json <span style='color:#111;'> 62B </span>","children":null,"spread":false}],"spread":true},{"title":"Extensions","children":[{"title":"Colors","children":[{"title":"UIColorExtensionListOfColors.swift <span style='color:#111;'> 421B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Flows","children":[{"title":"Shared","children":[{"title":"CircleView","children":[{"title":"CircleView.swift <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Main","children":[{"title":"MainViewController","children":[{"title":"MainViewController.xib <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"MainViewController.swift <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Base.lproj","children":[{"title":"LaunchScreen.storyboard <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"AppDelegate.swift <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"Info.plist <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"SensitiveDemo.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 158B </span>","children":null,"spread":false}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 40.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"SensitiveDemoUITests","children":[{"title":"SensitiveDemoUITests.swift <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"Info.plist <span style='color:#111;'> 733B </span>","children":null,"spread":false}],"spread":true},{"title":"SensitiveDemoTests","children":[{"title":"Info.plist <span style='color:#111;'> 733B </span>","children":null,"spread":false},{"title":"SensitiveDemoTests.swift <span style='color:#111;'> 1007B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 635B </span>","children":null,"spread":false},{"title":"Source","children":[{"title":"Extensions","children":[{"title":"View","children":[{"title":"UIViewExtensionGestures.swift <span style='color:#111;'> 46.19KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"GestureRecognizers","children":[{"title":"Swipe","children":[{"title":"SNSwipeGestureRecognizer.swift <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"SNSwipeGestureRecognizerConfigurationBlock.swift <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"SNSwipeGestureRecognizerHandlerBlock.swift <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"SNSwipeGestureRecognizerHandler.swift <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false}],"spread":true},{"title":"LongPress","children":[{"title":"SNLongPressGestureRecognizerHandler.swift <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"SNLongPressGestureRecognizerHandlerBlock.swift <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"SNLongPressGestureRecognizer.swift <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"SNLongPressGestureRecognizerConfigurationBlock.swift <span style='color:#111;'> 338B </span>","children":null,"spread":false}],"spread":true},{"title":"Tap","children":[{"title":"SNTapGestureRecognizerHandlerBlock.swift <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"SNTapGestureRecognizer.swift <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"SNTapGestureRecognizerConfigurationBlock.swift <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"SNTapGestureRecognizerHandler.swift <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Rotation","children":[{"title":"SNRotationGestureRecognizerConfigurationBlock.swift <span style='color:#111;'> 334B </span>","children":null,"spread":false},{"title":"SNRotationGestureRecognizerHandlerBlock.swift <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"SNRotationGestureRecognizer.swift <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"SNRotationGestureRecognizerHandler.swift <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"Pan","children":[{"title":"SNPanGestureRecognizerHandler.swift <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"SNPanGestureRecognizerConfigurationBlock.swift <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"SNPanGestureRecognizer.swift <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"SNPanGestureRecognizerHandlerBlock.swift <span style='color:#111;'> 302B </span>","children":null,"spread":false}],"spread":true},{"title":"Pinch","children":[{"title":"SNPinchGestureRecognizerHandler.swift <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"SNPinchGestureRecognizerHandlerBlock.swift <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"SNPinchGestureRecognizerConfigurationBlock.swift <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"SNPinchGestureRecognizer.swift <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"ScreenEdgePan","children":[{"title":"SNScreenEdgePanGestureRecognizerConfigurationBlock.swift <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"SNScreenEdgePanGestureRecognizerHandlerBlock.swift <span style='color:#111;'> 342B </span>","children":null,"spread":false},{"title":"SNScreenEdgePanGestureRecognizer.swift <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"SNScreenEdgePanGestureRecognizerHandler.swift <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 9.90KB </span>","children":null,"spread":false},{"title":"Sensitive.podspec <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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