∆ ∆
>( - . - )<
( u u ) "\\
( )____( )=//
为一个全新的、布满猫的UIImageView
// A new UIImageView populated with a cat image
UIImageView *happyImageView = [UIImageView imageViewWithCatImage];
// A new UIImageView populated with a cat image from a certain category
UIImageView *catInABox = [UIImageView imageViewWithCatImageWithCategory:CATegoryBoxes];
为了让现有的UIImageView更加有趣
UIImageView *sadImageView = [[UIImageView alloc] init];
// Populate an existing UIImageView with a cat image
[sadImageView useCatImage];
// Populate an existing UIImageView with a cat image from a certain category
[sadImageView useCatImageWithCategory:CATegoryHats];
要运行示例项目,请先克隆存储库,然后从Example目录中运行pod install
。
Nate Bailey,[email protected]
TheCatAPI可在MIT许可证下使用。有关更多信息,请参阅LICENSE文件。