PoppingFavoriteButton
示例
要运行示例项目,先克隆仓库,然后在 Example 目录中先运行 pod install
需求
此代码是用 Swift 4.1
编写的,目标版本为 iOS 12.1+
安装
PoppingFavoriteButton 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 文件中:
pod 'PoppingFavoriteButton'
如何使用
- 在 storyboard 中添加 UIButton 并将自定义类设置为
PoppingFavoriteButton
- 为按钮设置一个图片
作者
山本翔平,[email protected],2019年3月21日
许可
PoppingFavoriteButton软件遵循MIT许可证。有关详细信息,请参阅LICENSE文件。
致谢
本项目是DOFavoriteButton的重构代码。