Latest 0.2.7.2
Homepage https://github.com/sisoje/RHBSnippetsObjC
License MIT
Platforms ios 8.0, watchos 2.0, osx 10.7, tvos 9.0
Authors

[![CI Status](http://img.shields.io/travis/Lazar Otasevic/RHBSnippetsObjC.svg?style=flat)](https://travis-ci.org/Lazar Otasevic/RHBSnippetsObjC)
Version
License
Platform

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.

Latest podspec

{
    "name": "RHBSnippetsObjC",
    "version": "0.2.7.2",
    "summary": "Snippets for singleton and UIColor, others to come...",
    "description": "Red hot bits snippets for singleton and UIColor from RGB and others.",
    "homepage": "https://github.com/sisoje/RHBSnippetsObjC",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Lazar Otasevic": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sisoje/RHBSnippetsObjC.git",
        "tag": "0.2.7.2"
    },
    "social_media_url": "https://twitter.com/redhotbits",
    "platforms": {
        "ios": "8.0",
        "watchos": "2.0",
        "osx": "10.7",
        "tvos": "9.0"
    },
    "source_files": "RHBSnippets.h",
    "public_header_files": "RHBSnippets.h"
}

Pin It on Pinterest

Share This