diff options
Diffstat (limited to 'examples/cross_calculator/ios/src/AppDelegate.m')
-rw-r--r-- | examples/cross_calculator/ios/src/AppDelegate.m | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/examples/cross_calculator/ios/src/AppDelegate.m b/examples/cross_calculator/ios/src/AppDelegate.m deleted file mode 100644 index 53e7f6188..000000000 --- a/examples/cross_calculator/ios/src/AppDelegate.m +++ /dev/null @@ -1,39 +0,0 @@ -#import "AppDelegate.h" - -#import "NRViewController.h" - - -@interface AppDelegate () -@property (nonatomic, retain) NRViewController *viewController; -@end - - -@implementation AppDelegate - -@synthesize viewController = _viewController; -@synthesize window = _window; - -- (BOOL)application:(UIApplication *)application - didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ - self.window = [[[UIWindow alloc] - initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; - - self.viewController = [[NRViewController new] autorelease]; - if ([self.window respondsToSelector:@selector(setRootViewController:)]) - self.window.rootViewController = self.viewController; - else - [self.window addSubview:self.viewController.view]; - [self.window makeKeyAndVisible]; - - return YES; -} - -- (void)dealloc -{ - [_window release]; - [_viewController release]; - [super dealloc]; -} - -@end |