mirror of
https://github.com/zhigang1992/GVUserDefaults.git
synced 2026-01-12 22:47:46 +08:00
27 lines
887 B
Objective-C
27 lines
887 B
Objective-C
//
|
|
// AppDelegate.m
|
|
// Example
|
|
//
|
|
// Created by Kevin Renskers on 18-12-12.
|
|
// Copyright (c) 2012 Gangverk. All rights reserved.
|
|
//
|
|
|
|
#import "AppDelegate.h"
|
|
#import "ViewController.h"
|
|
|
|
@implementation AppDelegate
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
// Removing it for debugging, starting with a clean slate every time
|
|
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"NSUserDefaultUserName"];
|
|
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"NSUserDefaultUserId"];
|
|
|
|
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
|
self.window.backgroundColor = [UIColor whiteColor];
|
|
self.window.rootViewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
|
|
[self.window makeKeyAndVisible];
|
|
return YES;
|
|
}
|
|
|
|
@end
|