Latest 3.1.0
Homepage https://github.com/SPStore/SPButton
License MIT
Platforms ios 8.0
Authors

Pod Version
Pod Platform
Language

安装

target 'MyApp' do
  pod 'SPButton', '~> 3.1.0'
end

如何使用

  • 创建(创建的时候就设定图片的位置,也可以之后通过属性imagePosition设置)

    SPButton *button = [[SPButton alloc] initWithImagePosition:SPButtonImagePositionLeft];
  • 设置图片位置

    button.imagePosition = SPButtonImagePositionTop;
  • 设置图文间距
    button.imageTitleSpace = 10;

效果图

image

测试演示图(gif)

image

Latest podspec

{
    "name": "SPButton",
    "version": "3.1.0",
    "summary": "u81eau5b9au4e49u6309u94ae.",
    "description": "u81eau5b9au4e49u6309u94aeuff0cu56feu7247u53efu5728u4e0au3001u5de6u3001u4e0bu3001u53f3",
    "homepage": "https://github.com/SPStore/SPButton",
    "license": "MIT",
    "authors": {
        "SPStore": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/SPStore/SPButton.git",
        "tag": "3.1.0"
    },
    "source_files": [
        "SPButton",
        "SPButton/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This