UIImageView-Letters:UIImageView类别,用于将缩写作为占位符图像,用Objective-C编写。 有关Swift的实现,请参见https:github.combachonkInitialsImageView

时间:2024-02-23 23:36:23
【文件属性】:

文件名称:UIImageView-Letters:UIImageView类别,用于将缩写作为占位符图像,用Objective-C编写。 有关Swift的实现,请参见https:github.combachonkInitialsImageView

文件大小:30KB

文件格式:ZIP

更新时间:2024-02-23 23:36:23

objective-c placeholder cocoapods uiimageview-category uiimageview

UIImageView +字母 一个简单而有用的UIImageView类别,它生成字母首字母作为用户个人资料图像的占位符,具有随机的背景色 注意:寻找兼容Swift 3的版本吗? 查看新的扩展,该扩展完全用Swift重写! 安装 可可豆 将此规范添加到您的Podfile中: pod "UIImageView-Letters" 查看以开始使用CocoaPods。 手册 将UIImageView+Letters.{h,m}文件拖到您的项目中 请享用! 用法 在要使用类别的文件中,请确保导入文件。 #import "UIImageView+Letters.h" 方法 在任何UIImageView实例上调用以下方法来设置图像: - (void)setImageWithString:(NSString *)string - (void)setImageWithString:(NSString *)string color:(UIColor *)color - (void)setImageWithString:(NSString *)string color:(UIColor *)c


【文件预览】:
UIImageView-Letters-master
----UIImageViewLettersSample()
--------UIImageViewLettersSample()
--------UIImageViewLettersSampleTests()
--------UIImageViewLettersSample.xcodeproj()
----LICENSE(1KB)
----UIImageView-Letters.podspec(788B)
----README.md(3KB)
----UIImageView+Letters()
--------UIImageView+Letters.h(4KB)
--------UIImageView+Letters.m(7KB)
----.gitignore(13B)

网友评论