【文件属性】:
文件名称:ChainableKit:Objective-C 中的可链接 UIKit
文件大小:21KB
文件格式:ZIP
更新时间:2021-06-06 13:53:36
Objective-C
可链式套件
ChainableKit 是一种使用可链接语法设置 UIKit 组件的便捷方式。 这个框架的灵感来自和 。
使用 CocoaPods 安装
是 Objective-C 的依赖管理器,它自动化并简化了在项目中使用 DKNightVersion 等 3rd 方库的过程。 有关更多详细信息,请参阅。
播客文件
pod "ChainableKit", "~> 0.1.0"
如何使用
使用这些代码来配置视图的backgroundColor 。
view.make.backgroundColor([UIColor whiteColor ]);
使用这些代码从类方法初始化标签并使用可链接的语法设置它。
UIColor *red = [UIColor redColor ];
UILabel.make
.backgroundColor(red)
.textAlignmen
【文件预览】:
ChainableKit-master
----.gitignore(494B)
----README.md(2KB)
----ChainableKit.podspec(811B)
----ChainableKit()
--------AppDelegate.h(276B)
--------ViewController.h(214B)
--------Base.lproj()
--------main.m(333B)
--------Images.xcassets()
--------Info.plist(1KB)
--------AppDelegate.m(2KB)
--------ViewController.m(951B)
----LICENSE(1KB)
----ChainableKit.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(18KB)
--------xcuserdata()
----ChainableKitTests()
--------ChainableKitTests.m(873B)
--------Info.plist(752B)
----.travis.yml(120B)
----Classes()
--------ChainableBlock.h(2KB)
--------UIView+Chainable.h(273B)
--------ChainableKit.h(1KB)
--------ChainableKit.m(8KB)
--------UIView+Chainable.m(546B)