blob: 8225de4b6f09a90490285236604066ff94390c19 [file] [log] [blame]
{
"name": "CZInspectableView",
"version": "1.0.2",
"summary": "使用 IB_DESIGNABLE 和 IBInspectable 关键字,构建了一个 UIView 的 Category,使得可以在 IB 中直接操作并观察一些 Xcode 原本并不支持操作和渲染的属性。",
"description": "使用 Interface Builder 绘制 UI 时,碰到设置控件的圆角、边框之类的就比较头疼,IB 上不能像背景色那样有直接的属性可以设置。\n有一个解决办法是在 IB 的 Identity Inspector 选项卡的 User Defined Runtime Attributes 中通过属性的 Key Path 和 Value 设置。但这个无法在 IB 中实时显示。\niOS 为我们提供了 IB_DESIGNABLE 和 IBInspectable 关键字。前者能让 User Defined Runtime Attributes 中的设置实时显示在 IB 上;后者允许我们自定义属性,直接在 Attributes Inspector 中设置(本质上是设置在 User Defined Runtime Attributes 中),比如圆角,原本并不能直接在 Attributes Inspector 选项卡中设置。",
"homepage": "https://github.com/clayzhu/CZInspectableView_iOS",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"Clay Zhu": "clayzhu@163.com"
},
"platforms": {
"ios": "8.0"
},
"source": {
"git": "https://github.com/clayzhu/CZInspectableView_iOS.git",
"tag": "1.0.2"
},
"source_files": "CZInspectableView/**/*.{h,m}"
}