Skip to content

manuelmarcos/nsobject-block

Repository files navigation

nsobject-block

[![CI Status](http://img.shields.io/travis/Manuel Marcos Regalado/nsobject-block.svg?style=flat)](https://travis-ci.org/Manuel Marcos Regalado/nsobject-block) Version License Platform

Import

#import "NSObject+Block.h"

Usage

// Define delay time in seconds 
static const CGFloat kSecondsDelay = 0.0f;

// ...

[self performBlock:^{
            // Code run after delay
        } afterDelay:kSecondsDelay];

Requirements

Installation

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

pod "nsobject-block"

Author

Manuel Marcos Regalado, manuel@manuelmarcos.es

License

nsobject-block is available under the MIT license. See the LICENSE file for more info.

About

Objc Pod - A category of NSObject which has a method to run a block after an NSTimeInterval.

Resources

License

Stars

Watchers

Forks

Packages

No packages published