ObjCMacros 1.1.0

ObjCMacros 1.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total40
Week0
Month0

Installs

Apps3
powered by Segment

GitHub

Stars13
Watchers4
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files1
LOCLines of Code 73


  • By
  • Constantine Mureev and Artem Samalov

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.