To run the example project, clone the repo, and run pod install
from the Example directory first.
2017.07.27 -- 增加一个反方向的边距
2016.-.- --
SWTextAndImageButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SWTextAndImageButton', '~>0.1.0'
code
SWTextAndImageButton * btn
btn.rectType =SWButtonTypeTextLeft; //方向
btn.contentDistance = 10; // 文字图片间的距离
btn.padding = 20; // 边距
// btn.padding2 = 20; // 方向相反的边距
SWTextAndImageButton is available under the MIT license. See the LICENSE file for more info.