Latest 0.6
Homepage https://github.com/NSSimpleApps/NSKButton
License MIT
Platforms ios 8.0, requires ARC
Authors

NSKButton is a subclass of UIButton that implements image positioning like NSButton in OSX.

Minimal deployment targets: iOS 8.0, tvOS 9.0

Installation guide: place this into Podfile

# use_frameworks!

target 'Target' do
    pod 'NSKButton/ObjC' # objc project
    pod 'NSKButton/Swift' # swift project
end

Usage:

nskButton.nskImagePosition = NSKImagePosition{Default,Right,Top,Bottom};

Changing self.nskImagePosition automatically invalidates the button layout.

Alt text

Latest podspec

{
    "name": "NSKButton",
    "version": "0.6",
    "summary": "NSKButton is a subclass of UIButton that implements image positioning like NSButton in OSX.",
    "description": "NSKButton is a subclass of UIButton that implements image positioning like NSButton in OSX. Changing `self.nskImagePosition` automatically invalidates the button layout. See the README.",
    "homepage": "https://github.com/NSSimpleApps/NSKButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "NSSimpleApps, Sergey Poluyanov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NSSimpleApps/NSKButton.git",
        "tag": "0.6"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "default_subspecs": "ObjC",
    "pushed_with_swift_version": "4.0",
    "subspecs": [
        {
            "name": "ObjC",
            "platforms": {
                "ios": "8.0",
                "tvos": "9.0"
            },
            "source_files": "Source/ObjC/*.{h,m}",
            "public_header_files": "Source/ObjC/NSKButton.h"
        },
        {
            "name": "Swift",
            "platforms": {
                "ios": "8.0",
                "tvos": "9.0"
            },
            "source_files": "Source/Swift/*.swift"
        }
    ]
}

Pin It on Pinterest

Share This