Skip to content

Instantly share code, notes, and snippets.

@kattrali
Last active August 29, 2015 14:04
Show Gist options
  • Save kattrali/bbe9e2464d02a8ca4cb1 to your computer and use it in GitHub Desktop.
Save kattrali/bbe9e2464d02a8ca4cb1 to your computer and use it in GitHub Desktop.
Sample files generated using Ovaltine! https://github.com/kattrali/ovaltine
//
// DMMMainStoryboard.h
// Copyright (c) 2014 Delisa Mason. All rights reserved.
// Generated by Ovaltine (http://github.com/kattrali/ovaltine)
#import <Foundation/Foundation.h>
@interface DMMMainStoryboard : NSObject
+(UIStoryboard *)storyboard;
/** Cell Reuse Identifiers */
+(NSString *)sampleCellIdentifier;
+(NSString *)squareCellIdentifier;
/** Segue Identifiers */
+(NSString *)starterSegueIdentifier;
/** View Controllers */
+(UIViewController *)instantiateSampleViewController;
+(UIViewController *)instantiateListViewController;
+(UIViewController *)instantiateCollectionViewController;
+(UIViewController *)instantiateNavigationViewController;
@end
//
// DMMMainStoryboard.m
// Copyright (c) 2014 Delisa Mason. All rights reserved.
// Generated by Ovaltine (http://github.com/kattrali/ovaltine)
#import <UIKit/UIKit.h>
#import "DMMMainStoryboard.h"
static UIStoryboard *_storyboard = nil;
static NSString *const _DMMmain = @"Main";
static NSString *const _DMMcollectionViewController = @"collectionViewController";
static NSString *const _DMMlistViewController = @"listViewController";
static NSString *const _DMMnavigationViewController = @"navigationViewController";
static NSString *const _DMMsampleCellIdentifier = @"sampleCellIdentifier";
static NSString *const _DMMsampleViewController = @"sampleViewController";
static NSString *const _DMMsquareCellIdentifier = @"squareCellIdentifier";
static NSString *const _DMMstarterSegueIdentifier = @"starterSegueIdentifier";
@implementation DMMMainStoryboard
+(UIStoryboard *)storyboard { return _storyboard ?: (_storyboard = [UIStoryboard storyboardWithName:_DMMmain bundle:[NSBundle mainBundle]]); }
/** Cell Reuse Identifiers */
+(NSString *)sampleCellIdentifier { return _DMMsampleCellIdentifier; }
+(NSString *)squareCellIdentifier { return _DMMsquareCellIdentifier; }
/** Segue Identifiers */
+(NSString *)starterSegueIdentifier { return _DMMstarterSegueIdentifier; }
/** View Controllers */
+(UIViewController *)instantiateSampleViewController { return [[self storyboard] instantiateViewControllerWithIdentifier:_DMMsampleViewController]; }
+(UIViewController *)instantiateListViewController { return [[self storyboard] instantiateViewControllerWithIdentifier:_DMMlistViewController]; }
+(UIViewController *)instantiateCollectionViewController { return [[self storyboard] instantiateViewControllerWithIdentifier:_DMMcollectionViewController]; }
+(UIViewController *)instantiateNavigationViewController { return [[self storyboard] instantiateViewControllerWithIdentifier:_DMMnavigationViewController]; }
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment