Last active
August 29, 2015 14:04
-
-
Save kattrali/bbe9e2464d02a8ca4cb1 to your computer and use it in GitHub Desktop.
Sample files generated using Ovaltine! https://github.com/kattrali/ovaltine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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