PrettyRuler:一个漂亮的横向刻度尺自定义控件,用CAShapeLayer实现高效GPU渲染-源码

上传者: 42143092 | 上传时间: 2021-09-26 10:09:18 | 文件大小: 55KB | 文件类型: ZIP
PrettyRuler 一个漂亮的横向刻度尺自定义控件,用CAShapeLayer实现高效GPU渲染,没有用一张图片! 控件两边添加渐变透明效果,看起来更加自然。使用方法具体看demo,简单易懂,几句代码搞定,但是该自定义控件只支持代码方式创建。 说明 iOS7 +,刻度选择支持选择0值,为最小模式,不能选择0值时候,为正常模式,具体请看最下面效果图。 支持pod安装 pod 'PrettyRuler', '~> 2.1.1' 用法 拖拽class文件夹到你的项目 在你的控制器里导入 TXHRrettyRuler.h 类 类似以下这段代码 TXHRrettyRuler *ruler = [[TXHRrettyRuler alloc] initWithFrame:CGRectMake(20, 220, [UIScreen mainScreen].bounds.size.width - 20

文件下载

资源详情

[{"title":"( 30 个子文件 55KB ) PrettyRuler:一个漂亮的横向刻度尺自定义控件,用CAShapeLayer实现高效GPU渲染-源码","children":[{"title":"PrettyRuler-master","children":[{"title":"PrettyRuler","children":[{"title":"ViewController.m <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"Info.plist <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"main.m <span style='color:#111;'> 335B </span>","children":null,"spread":false},{"title":"Base.lproj","children":[{"title":"LaunchScreen.storyboard <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"Main.storyboard <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"PrettyRulerClass","children":[{"title":"TXHRulerScrollView.m <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"TXHRrettyRuler.h <span style='color:#111;'> 944B </span>","children":null,"spread":false},{"title":"TXHRulerScrollView.h <span style='color:#111;'> 675B </span>","children":null,"spread":false},{"title":"TXHRrettyRuler.m <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"ViewController.h <span style='color:#111;'> 215B </span>","children":null,"spread":false},{"title":"AppDelegate.h <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"Assets.xcassets","children":[{"title":"AppIcon.appiconset","children":[{"title":"Contents.json <span style='color:#111;'> 585B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"AppDelegate.m <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"PrettyRuler.podspec <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"PrettyRulerUITests","children":[{"title":"Info.plist <span style='color:#111;'> 733B </span>","children":null,"spread":false},{"title":"PrettyRulerUITests.m <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"PrettyRuler.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"gongxinying.xcuserdatad","children":[{"title":"UserInterfaceState.xcuserstate <span style='color:#111;'> 22.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"Tang.xcuserdatad","children":[{"title":"UserInterfaceState.xcuserstate <span style='color:#111;'> 19.69KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"xcuserdata","children":[{"title":"gongxinying.xcuserdatad","children":[{"title":"xcdebugger","children":[{"title":"Breakpoints_v2.xcbkptlist <span style='color:#111;'> 782B </span>","children":null,"spread":false}],"spread":true},{"title":"xcschemes","children":[{"title":"xcschememanagement.plist <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"PrettyRuler.xcscheme <span style='color:#111;'> 4.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Tang.xcuserdatad","children":[{"title":"xcdebugger","children":[{"title":"Breakpoints_v2.xcbkptlist <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"xcschemes","children":[{"title":"xcschememanagement.plist <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"PrettyRuler.xcscheme <span style='color:#111;'> 4.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 22.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"PrettyRulerTests","children":[{"title":"Info.plist <span style='color:#111;'> 733B </span>","children":null,"spread":false},{"title":"PrettyRulerTests.m <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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