Latest 0.0.1
Homepage https://github.com/kingsic/SGImagePositionButton
License MIT
Platforms ios 6.0, requires ARC
Authors

一句代码搞定按钮的图片与文字布局样式

效果图

SGImagePositionButton

SGImagePositionButton 集成

  • 1、CocoaPods 导入 pod ‘SGImagePositionButton’

  • 2、下载、拖拽 “SGImagePositionButton” 文件夹到工程中

  • 3、导入 SGImagePositionButton.h 头文件并调用 "SG_imagePosition:spacing" 方法即可设置你想要的布局样式
/**
 *  设置图片与文字样式
 *
 *  @param imagePosition     图片位置样式
 *  @param spacing           图片与文字之间的间距
 */
- (void)SG_imagePosition:(SGImagePosition)imagePosition spacing:(CGFloat)spacing;

Concluding remarks

Latest podspec

{
    "name": "SGImagePositionButton",
    "version": "0.0.1",
    "summary": "A category about UIButtonu2018s imageView and titleLabel layout adjustments",
    "homepage": "https://github.com/kingsic/SGImagePositionButton",
    "license": "MIT",
    "authors": {
        "kingsic": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/kingsic/SGImagePositionButton.git",
        "tag": "0.0.1"
    },
    "source_files": "SGImagePositionButton/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This