RHBSnippetsObjC 0.2.7.2

RHBSnippetsObjC 0.2.7.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release May 2017

Maintained by Lazar Otasevic.



Usage

In your source code add #import "RHBSnippets.h" and you are ready! This file will not make any troubles to your compiler since its all based upon macro definitions.

Singleton synthetize

Instead of copy pasting this block every time:

@implementation RHBOrientationUtilities

+ (instancetype)sharedInstance {
    static id sharedInstance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedInstance = [self new];
    });
    return sharedInstance;
}

/// init and other methods ...

You just add this one line:

@implementation RHBOrientationUtilities

RHB_SINGLETON_IMPLEMENTATION();

/// init and other methods ...

There is also macro to make an UIColor from (hex) color refferences.

Example

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

Requirements

Installation

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

pod "RHBSnippetsObjC"

Author

Lazar Otasevic, [email protected]

License

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