Latest1.1.6
Homepagehttps://github.com/rickytan/RTIconButton
LicenseMIT
Platformsios 7.0, requires ARC
FrameworksUIKit
Authors

CI Status
Version
License
Platform

This is a drop-in replacement for UIButton, which support convenient configuration for image icon’s position and icon title margin.

It also support control centent aligns.

NOTE: To support IB, you must set use_frameworks! in your Podfile.

S1

Usage

  1. Drag and drop a UIButton to your controller
  2. set the Class to RTIconButton
  3. set the icon position, icon margin and icon size. If size is not specified, it will displayed in the image natural size.

S2

S3

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

Requirements

  • UIKit
  • Xcode 6

Installation

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

pod "RTIconButton"

License

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

Latest podspec

{
    "name": "RTIconButton",
    "version": "1.1.6",
    "summary": "A Interface Builder configurable UIButton with a image icon",
    "description": "This is a drop-in replacement for UIButton, which support convenient configuration for image icon's positionnand icon title margin. It also support control centent aligns.nNOTE: to support IB, you must set use_frameworks! in your Podfile.",
    "homepage": "https://github.com/rickytan/RTIconButton",
    "license": "MIT",
    "authors": {
        "rickytan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rickytan/RTIconButton.git",
        "tag": "1.1.6"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/**/*.h",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This