ImageCenterButton
来源:互联网 发布:大数据对贵州的影响 编辑:程序博客网 时间:2024/06/08 12:20
github地址:ImageCenterButton
ImageCenterButton 是什么
ImageCenterButton 是UIButton的子类。可以用它很方便的生成图像在上文字标签在下的按钮。
ImageCenterButton提供了哪些功能
- 根据按钮大小动态调整图像大小
- 图像与文字标签间距可定制
- 图像padding可定制
- 支持生成圆形图像
- 按钮不同状态背景色可定制
ImageCenterButton 使用配置
// 是否将图像设置成圆形@property BOOL imageIsRound;// 图像padding设置@property CGFloat padding;// imageview和textlabel间距设置@property CGFloat imageTextSpace;// imageview最大尺寸设置@property CGSize imageViewMaxSize;// Button高亮状态背景色设置@property(nonatomic, strong) UIColor *backgroundHighlightedColor;// Button普通状态背景色设置@property(nonatomic, strong) UIColor *backgroundNormalColor;
CocoaPods 支持
你可以在 Podfile 中加入下面一行代码来使用ImageCenterButton
pod 'ImageCenterButton'
协议
ImageCenterButton 被许可在 MIT 协议下使用。查阅 LICENSE 文件来获得更多信息。
0 0
- ImageCenterButton
- 使用Struts2和jQuery EasyUI实现简单CRUD系统(二)——ajax与struts2的交互
- 分组算法
- 按行获取TextView的内容
- 解密得出PIID Value产生的Unknown wire-type 6异常
- JAVA HttpURLConnection Post方式提交传递参数
- ImageCenterButton
- mysql数据库授权所有人
- Struts2-简单了解
- Ubuntu15.04 下编译Android4.2.2的问题总结
- 命令模式
- ibatis mybatis sql语句配置 符号不兼容 大于号 小于号
- S3C2440驱动移植——AT24C02(EEPROM)移植
- eclipse导入本地项目SVN信息丢失的问题
- openfire删除