Latest 0.1.0
Homepage https://github.com/isongwei/SWTextAndImageButton
License MIT
Platforms ios 6.0
Authors

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

[email protected]

License

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

Latest podspec

{
    "name": "SWTextAndImageButton",
    "version": "0.1.0",
    "summary": "button u7684u6587u5b57u56feu7247u65b9u5411u5c0fu5c01u88c5",
    "description": "button u7684u5c0fu5c01u88c5,u652fu6301xib,u4f7fu7528u7b80u5355",
    "homepage": "https://github.com/isongwei/SWTextAndImageButton",
    "license": "MIT",
    "authors": {
        "isongwei": "[email protected]"
    },
    "source": {
        "git": "https://github.com/isongwei/SWTextAndImageButton.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "SWTextAndImageButton/**/*"
}

Pin It on Pinterest

Share This