Skip to content

简单好用的文字图片排布,仅仅添加了3个属性,可xib使用

License

Notifications You must be signed in to change notification settings

isongwei/SWTextAndImageButton

Repository files navigation

SWTextAndImageButton

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

更改记录:

2017.07.27 -- 增加一个反方向的边距

2016.-.- --

Installation

SWTextAndImageButton is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SWTextAndImageButton', '~>0.1.0'

Use

code
SWTextAndImageButton * btn
btn.rectType =SWButtonTypeTextLeft;  //方向
btn.contentDistance = 10; // 文字图片间的距离
btn.padding = 20; // 边距
// btn.padding2 = 20; // 方向相反的边距

xib

Author

imsongwei@163.com

License

SWTextAndImageButton is available under the MIT license. See the LICENSE file for more info.

About

简单好用的文字图片排布,仅仅添加了3个属性,可xib使用

Resources

License

Stars

Watchers

Forks

Packages

No packages published