CustomSegmentControl
示例
要运行示例项目,首先克隆仓库,并在 Example 目录中运行 pod install
要求
此 Pod 要求部署目标为 iOS 9.0 或更高版本。支持 Swift 4
用法
let customSegmented = CustomSegmented(frame: CGRect(x: 0, y: 50, width: self.view.frame.width, height: 50), buttonTitles: ["On", "Off", "Neutral", "Custom"])
// Plz maintain the order, otherwise swipe will not work by chance
view.addSubview(customSegmented)
customSegmented.onsegmentTapped = self
customSegmented.configViews()
安装
CustomSegmentControl 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中
pod 'CustomSegmentControl'
作者
[email protected], [email protected]
许可协议
CustomSegmentControl 在 MIT 许可协议下可用。更多信息请参阅 LICENSE 文件。