Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Latest commit

 

History

History
46 lines (31 loc) · 997 Bytes

README.md

File metadata and controls

46 lines (31 loc) · 997 Bytes

ObjCMacros

Badge w/ Version Badge w/ Platform

ObjCMacros is set of macros and constants that speed up development without adding any new classes and categories.

Example Usage

Working with RGB colors

[UIColor colorWithRed:RGB(102) green:RGB(51) blue:RGB(53) alpha:1];

Using NSLocalizedString

NSLS(@"UNIQUE_KEY");

Is populated string?

if (IS_POPULATED_STRING(str)) {
        // statements-if-true
} else {
        // statements-if-false
}

Asserts / Exceptions

- (void)methodName {
    THROW_NOT_IMPLEMENTED_EXCEPTION
}

And even more!

ObjCMacros.h contains so many to choose from!

License

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