Skip to content

HelloMihai/HMUIButtonOnTouch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

HMUIButtonOnTouch

This UIButton category takes a block for touchUpInside calls.

Usage

  // import the category
  #import "UIButton+HMUIButtonOnTouch.h"

  // adding a block for the touch up inside call
  [self.myButton onTouchInside:^{
        NSLog(@"on static button tap");
  }];

  // destroying
  [self.myButton onTouchInside:nil];

Contact

http://hellomihai.wordpress.com/

License

Available under the MIT License. See the LICENSE file for more.

About

adds onTouchInside with block call for cleaner control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published