UIButtonCenterTitleAndImage:UIButton+CenterImageAndTitle是UIButton的Category,专门用于修改UIButton的图片和文字位置,提供修改图片和文字位置的五种模式:1、图片和文字上下居中,图片在上,文字在下;2、图片和文字左右居中,文字在左,图片在右;3、图片和文字左右居中,图片在左,文字在右;4、文字居中,图片在左边;5、文字居中,图片在右边

时间:2021-07-13 18:12:07
【文件属性】:
文件名称:UIButtonCenterTitleAndImage:UIButton+CenterImageAndTitle是UIButton的Category,专门用于修改UIButton的图片和文字位置,提供修改图片和文字位置的五种模式:1、图片和文字上下居中,图片在上,文字在下;2、图片和文字左右居中,文字在左,图片在右;3、图片和文字左右居中,图片在左,文字在右;4、文字居中,图片在左边;5、文字居中,图片在右边
文件大小:33KB
文件格式:ZIP
更新时间:2021-07-13 18:12:07
Objective-C UIButtonCenterTitleAndImage UIButton+CenterImageAndTitle是UIButton的Category,专门用于修改UIButton的图片和文字位置,提供修改图片和文字位置的五种模式:1、图片和文字上下居中,图片在上,文字在下;2、图片和文字左右居中,文字在左,图片在右;3、图片和文字左右居中,图片在左,文字在右;4、文字居中,图片在左边;5、文字居中,图片在右边。 Useage(用法) 1、导入#import "UIButton+CenterImageAndTitle.h" 2、直接调用方法 例如: UIButton button1 = [UIButton buttonWithType:UIButtonTypeCustom]; button1.frame = CGRectMake(60, 80+i60, kScreenWidth-60*2,
【文件预览】:
UIButtonCenterTitleAndImage-master
----UIButtonCenterTitleAndImage()
--------UIButtonCenterTitleAndImage.xcodeproj()
--------UIButtonCenterTitleAndImageTests()
--------UIButtonCenterTitleAndImage()
----README.md(2KB)

网友评论