Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
MediumRectBanner/MediumRectBanner/AppDelegate.m
/* |
Copyright (C) 2013-2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Application delegate |
*/ |
#import "AppDelegate.h" |
#import "CollectionViewController.h" |
@implementation AppDelegate { |
CollectionViewController *_viewController; |
} |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
{ |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
self.window.backgroundColor = [UIColor whiteColor]; |
_viewController = [[CollectionViewController alloc] initWithNibName:@"CollectionViewController" bundle:nil]; |
self.window.rootViewController = _viewController; |
[self.window makeKeyAndVisible]; |
return YES; |
} |
@end |
Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-05-28