Created
November 4, 2013 21:17
-
-
Save jfahrenkrug/7309324 to your computer and use it in GitHub Desktop.
An Xcode 5 template that lets you deselect the use of storyboards.
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ancestors</key> | |
<array> | |
<string>com.apple.dt.unit.cocoaTouchApplication</string> | |
</array> | |
<key>Concrete</key> | |
<true/> | |
<key>Definitions</key> | |
<dict> | |
<key>___VARIABLE_classPrefix:identifier___ViewController.m:private</key> | |
<string>@interface ___VARIABLE_classPrefix:identifier___ViewController () | |
@end | |
</string> | |
</dict> | |
<key>Description</key> | |
<string>This template provides a starting point for an application that uses a single view. It provides a view controller to manage the view, and a storyboard or nib file that contains the view.</string> | |
<key>Identifier</key> | |
<string>com.apple.dt.unit.singleViewApplication</string> | |
<key>Kind</key> | |
<string>Xcode.Xcode3.ProjectTemplateUnitKind</string> | |
<key>Nodes</key> | |
<array> | |
<string>___VARIABLE_classPrefix:identifier___ViewController.h:viewControllerInterface</string> | |
<string>___VARIABLE_classPrefix:identifier___ViewController.m:comments</string> | |
<string>___VARIABLE_classPrefix:identifier___ViewController.m:import:___VARIABLE_classPrefix:identifier___ViewController.h</string> | |
<string>___VARIABLE_classPrefix:identifier___ViewController.m:private</string> | |
<string>___VARIABLE_classPrefix:identifier___ViewController.m:implementation:viewDidLoad</string> | |
<string>___VARIABLE_classPrefix:identifier___ViewController.m:implementation:didReceiveMemoryWarning</string> | |
</array> | |
<key>Options</key> | |
<array> | |
<dict> | |
<key>Default</key> | |
<string>true</string> | |
<key>Description</key> | |
<string>Whether the application should use Interface Builder Storyboards (requires iOS 5.0)</string> | |
<key>Identifier</key> | |
<string>useStoryboard</string> | |
<key>Name</key> | |
<string>Use Storyboards</string> | |
<key>SortOrder</key> | |
<integer>1</integer> | |
<key>Type</key> | |
<string>checkbox</string> | |
<key>Units</key> | |
<dict> | |
<key>false</key> | |
<array> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>*:implementation:initSection:initViewController</key> | |
<dict> | |
<key>Beginning</key> | |
<string>- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
{ | |
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
if (self) {</string> | |
<key>End</key> | |
<string> } | |
return self; | |
} | |
</string> | |
<key>Indent</key> | |
<integer>2</integer> | |
</dict> | |
<key>___VARIABLE_classPrefix:identifier___AppDelegate.m:applicationdidFinishLaunchingWithOptions</key> | |
<dict> | |
<key>Beginning</key> | |
<string>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = ___RP___[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]___AR___; | |
// Override point for customization after application launch.</string> | |
<key>End</key> | |
<string> [self.window makeKeyAndVisible]; | |
return YES; | |
} | |
</string> | |
<key>Indent</key> | |
<integer>1</integer> | |
</dict> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>___PACKAGENAME___-Prefix.pch:Availability:iPhoneAvailability:4</string> | |
</array> | |
</dict> | |
</array> | |
<key>true</key> | |
<array> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>*:implementation:initSection:initViewController</key> | |
<dict> | |
<key>Beginning</key> | |
<string>- (void)awakeFromNib | |
{</string> | |
<key>End</key> | |
<string> [super awakeFromNib]; | |
} | |
</string> | |
<key>Indent</key> | |
<integer>1</integer> | |
</dict> | |
<key>___VARIABLE_classPrefix:identifier___AppDelegate.m:applicationdidFinishLaunchingWithOptions</key> | |
<dict> | |
<key>Beginning</key> | |
<string>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
// Override point for customization after application launch.</string> | |
<key>End</key> | |
<string> return YES; | |
} | |
</string> | |
<key>Indent</key> | |
<integer>1</integer> | |
</dict> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>___PACKAGENAME___-Prefix.pch:Availability:iPhoneAvailability:5</string> | |
</array> | |
</dict> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>___PACKAGENAME___-Info.plist:UIMainStoryboardFile</key> | |
<string><key>UIMainStoryboardFile</key> | |
<string>MainStoryboard</string></string> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>___PACKAGENAME___-Info.plist:UIMainStoryboardFile</string> | |
<string>en.lproj/MainStoryboard.storyboard</string> | |
</array> | |
<key>RequiredOptions</key> | |
<dict> | |
<key>universalDeviceFamily</key> | |
<string>iPhone</string> | |
</dict> | |
</dict> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>___PACKAGENAME___-Info.plist:UIMainStoryboardFile</key> | |
<string><key>UIMainStoryboardFile</key> | |
<string>MainStoryboard</string></string> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>___PACKAGENAME___-Info.plist:UIMainStoryboardFile</string> | |
<string>en.lproj/MainStoryboard.storyboard</string> | |
</array> | |
<key>RequiredOptions</key> | |
<dict> | |
<key>universalDeviceFamily</key> | |
<string>iPad</string> | |
</dict> | |
</dict> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>___PACKAGENAME___-Info.plist:UIMainStoryboardFile</key> | |
<string><key>UIMainStoryboardFile</key> | |
<string>MainStoryboard_iPhone</string> | |
<key>UIMainStoryboardFile~ipad</key> | |
<string>MainStoryboard_iPad</string></string> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>___PACKAGENAME___-Info.plist:UIMainStoryboardFile</string> | |
<string>en.lproj/MainStoryboard_iPhone.storyboard</string> | |
<string>en.lproj/MainStoryboard_iPad.storyboard</string> | |
</array> | |
<key>RequiredOptions</key> | |
<dict> | |
<key>universalDeviceFamily</key> | |
<string>Universal</string> | |
</dict> | |
</dict> | |
</array> | |
</dict> | |
</dict> | |
<dict> | |
<key>Identifier</key> | |
<string>useStoryboard</string> | |
<key>Units</key> | |
<dict> | |
<key>false</key> | |
<array> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>___VARIABLE_classPrefix:identifier___AppDelegate.h:methods:viewController</key> | |
<string>@property (strong, nonatomic) ___VARIABLE_classPrefix:identifier___ViewController *viewController; | |
</string> | |
<key>___VARIABLE_classPrefix:identifier___AppDelegate.m:applicationdidFinishLaunchingWithOptions:setup</key> | |
<string>self.viewController = ___RP___[[___VARIABLE_classPrefix:identifier___ViewController alloc] initWithNibName:@"___VARIABLE_classPrefix:identifier___ViewController" bundle:nil]___AR___; | |
self.window.rootViewController = self.viewController;</string> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>___VARIABLE_classPrefix:identifier___AppDelegate.h:class:___VARIABLE_classPrefix:identifier___ViewController</string> | |
<string>___VARIABLE_classPrefix:identifier___AppDelegate.h:methods:viewController</string> | |
<string>___VARIABLE_classPrefix:identifier___AppDelegate.m:import:___VARIABLE_classPrefix:identifier___ViewController.h</string> | |
<string>___VARIABLE_classPrefix:identifier___AppDelegate.m:implementation:dealloc:_viewController</string> | |
</array> | |
</dict> | |
</array> | |
</dict> | |
</dict> | |
<dict> | |
<key>Identifier</key> | |
<string>universalDeviceFamily</string> | |
<key>Units</key> | |
<dict> | |
<key>Universal</key> | |
<array> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>en.lproj/MainStoryboard_iPad.storyboard</key> | |
<dict> | |
<key>Path</key> | |
<string>MainStoryboard_iPad.storyboard</string> | |
</dict> | |
<key>en.lproj/MainStoryboard_iPhone.storyboard</key> | |
<dict> | |
<key>Path</key> | |
<string>MainStoryboard_iPhone.storyboard</string> | |
</dict> | |
</dict> | |
</dict> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>___VARIABLE_classPrefix:identifier___AppDelegate.m:applicationdidFinishLaunchingWithOptions:setup</key> | |
<string>if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { | |
self.viewController = ___RP___[[___VARIABLE_classPrefix:identifier___ViewController alloc] initWithNibName:@"___VARIABLE_classPrefix:identifier___ViewController_iPhone" bundle:nil]___AR___; | |
} else { | |
self.viewController = ___RP___[[___VARIABLE_classPrefix:identifier___ViewController alloc] initWithNibName:@"___VARIABLE_classPrefix:identifier___ViewController_iPad" bundle:nil]___AR___; | |
} | |
self.window.rootViewController = self.viewController;</string> | |
<key>en.lproj/___VARIABLE_classPrefix:identifier___ViewController_iPad.xib</key> | |
<dict> | |
<key>Path</key> | |
<string>ViewControlleriPad.xib</string> | |
</dict> | |
<key>en.lproj/___VARIABLE_classPrefix:identifier___ViewController_iPhone.xib</key> | |
<dict> | |
<key>Path</key> | |
<string>ViewControlleriPhone.xib</string> | |
</dict> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>en.lproj/___VARIABLE_classPrefix:identifier___ViewController_iPhone.xib</string> | |
<string>en.lproj/___VARIABLE_classPrefix:identifier___ViewController_iPad.xib</string> | |
</array> | |
<key>RequiredOptions</key> | |
<dict> | |
<key>useStoryboard</key> | |
<string>false</string> | |
</dict> | |
</dict> | |
</array> | |
<key>iPad</key> | |
<array> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>en.lproj/MainStoryboard.storyboard</key> | |
<dict> | |
<key>Path</key> | |
<string>MainStoryboard_iPad.storyboard</string> | |
</dict> | |
</dict> | |
</dict> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>en.lproj/___VARIABLE_classPrefix:identifier___ViewController.xib</key> | |
<dict> | |
<key>Path</key> | |
<string>ViewControlleriPad.xib</string> | |
</dict> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>en.lproj/___VARIABLE_classPrefix:identifier___ViewController.xib</string> | |
</array> | |
<key>RequiredOptions</key> | |
<dict> | |
<key>useStoryboard</key> | |
<string>false</string> | |
</dict> | |
</dict> | |
</array> | |
<key>iPhone</key> | |
<array> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>en.lproj/MainStoryboard.storyboard</key> | |
<dict> | |
<key>Path</key> | |
<string>MainStoryboard_iPhone.storyboard</string> | |
</dict> | |
</dict> | |
</dict> | |
<dict> | |
<key>Definitions</key> | |
<dict> | |
<key>en.lproj/___VARIABLE_classPrefix:identifier___ViewController.xib</key> | |
<dict> | |
<key>Path</key> | |
<string>ViewControlleriPhone.xib</string> | |
</dict> | |
</dict> | |
<key>Nodes</key> | |
<array> | |
<string>en.lproj/___VARIABLE_classPrefix:identifier___ViewController.xib</string> | |
</array> | |
<key>RequiredOptions</key> | |
<dict> | |
<key>useStoryboard</key> | |
<string>false</string> | |
</dict> | |
</dict> | |
</array> | |
</dict> | |
</dict> | |
</array> | |
<key>SortOrder</key> | |
<integer>1</integer> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment