Skip to content

一个可以自定义样式的button的实例,通过设置枚举类型,可以让文字在左图片在右或者图片在上文字在下。

License

Notifications You must be signed in to change notification settings

iDustPan/XBorderTagButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XBorderTagButton

一个可以自定义样式的button的实例,通过设置枚举类型,可以让文字在左图片在右或者图片在上文字在下。

实现方法:

1.继承UIButton; 2.核心思路是设置UIButton实例的imageEdgeInsets、titleEdgeInsets和contentEdgeInsets属性。

About

一个可以自定义样式的button的实例,通过设置枚举类型,可以让文字在左图片在右或者图片在上文字在下。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published