BRYVarArgs 1.0.0

BRYVarArgs 1.0.0

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

Maintained by Bryan Irace.



  • By
  • Bryan Irace

A nicer syntax for enumerating variable arguments.

Installation

Usage

- (id)initWithCancelButtonTitle:(NSString *)cancelTitle otherButtonTitles:(NSString *)otherButtonTitles, ... {
    if (self = [super init]) {
        NSMutableArray *buttonTitles = [[NSMutableArray alloc] init];

        BRYVarArgs(^(NSString *title) {
            [buttonTitles addObject:title];
        }, otherButtonTitles);
    }

    return self;
}

License

Available for use under the MIT license: http://bryan.mit-license.org