UIImageView-ninepatch 是 UIImageView 的一个分类。它可以自动正确处理 9-patch PNG 格式。
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
使用 Cocoapod
您可以通过 CocoaPods 获取 UIImageView-ninepatch。要安装它,只需将以下行添加到您的 Podfile 中
pod "UIImageView-ninepatch"
使用简单方法
将 UIImageView-ninepatch.h 和 UIImageView-ninepatch.m 文件拖放入您的项目中。别忘了将其导入到您的项目中
#import "UIImageView-ninepatch.h"
请参阅 链接
huangxinping, [email protected]
Colorkit 在 MIT 许可协议下可用。有关更多信息,请参阅 LICENSE 文件。