Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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