Skip to content

Instantly share code, notes, and snippets.

View paulrehkugler's full-sized avatar

Paul Rehkugler paulrehkugler

View GitHub Profile
- (id)initWithCancelButtonTitle:(NSString *)cancelTitle otherButtonTitles:(NSString *)otherButtonTitles, ... {
if (self = [super init]) {
NSMutableArray *buttonTitles = [[NSMutableArray alloc] init];
BRYEachArgumentBlock eachArgumentBlock = ^(NSString *title) {
[buttonTitles addObject:title];
};
BRYVarArgs(eachArgumentBlock, otherButtonTitles);
}
- (UIStatusBarStyle) preferredStatusBarStyle {
// UIStatusBarStyleLightContent is only defined in the iOS7 SDK
#if __IPHONE_OS_MAX_ALLOWED 70000
return UIStatusBarStyleLightContent;
#else
return UIStatusBarStyleBlackOpaque;
#endif
}
#endif