Latest 0.2
Homepage https://github.com/lightroomapps/LRGlowingButton
License MIT
Platforms ios 5.0
Frameworks QuartzCore
Authors

LRGlowingButton is a subclass of UIButton which has custom glow built-in.

Installation

Important note if your project uses ARC: you must add the -fno-objc-arc compiler flag to LRGlowingButton.m in Target Settings > Build Phases > Compile Sources.

  • Drag the LRGlowingButton.h, LRGlowingButton.m folder into your project.
  • Add the QuartzCore framework to your project.

Usage

In its simplest form, this is how you create an LRGlowingButton instance:

LRGlowingButton *button = [LRGlowingButton buttonWithType:UIButtonTypeCustom];
button.glowsWhenHighlighted = YES;
button.highlightedGlowColor = [UIColor whiteColor];
[self.view addSubview:button];

Result

    
Example White
    
Example Red

Latest podspec

{
    "name": "LRGlowingButton",
    "version": "0.2",
    "summary": "Subclass of UIButton with custom glow color.",
    "homepage": "https://github.com/lightroomapps/LRGlowingButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Nikita Lutsenko": "http://lightroomapps.com"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/lightroomapps/LRGlowingButton.git",
        "tag": "0.2"
    },
    "source_files": "LRGlowingButton.{h,m}",
    "frameworks": "QuartzCore",
    "requires_arc": false
}

Pin It on Pinterest

Share This