AMEdgeView
AMEdgeView
是一个 UIView
子类,可以用作添加到另一个视图一边的边框。
用法
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
要求
安装
AMEdgeView 通过 CocoaPods 提供。安装它,只需将以下行添加到您的 Podfile 中
pod "AMEdgeView"
用法
view.AM_addEdge(.Bottom) // Adds a black bottom edge with a width of 1.0.
view.AM_addEdge(.Left, width: 2.0, color: UIColor.redColor()) // Adds a red left edge with a width of 2.0.
view.AM_addEdge(.Top, leadingSpace: 5.0) // Adds a top edge with a width 5.0 space to its left.
view.AM_addEdge(.Right, trailingSpace: 5.0) // Adds a right edge with 5.0 space below it.
作者
Anthony Miller, [电子邮件地址隐藏]
许可证
AMEdgeView遵循MIT许可证。更多信息请参阅LICENSE文件。