PageRenderTime 54ms CodeModel.GetById 23ms app.highlight 10ms RepoModel.GetById 19ms app.codeStats 0ms

/VowelDestroyer/VowelDestroyer/VowelDestroyerAppDelegate.m

http://github.com/rzuniga64/objectiveC
Objective C | 58 lines | 31 code | 12 blank | 15 comment | 0 complexity | 849ed2fc0674f894d457af76ef633681 MD5 | raw file
 1//
 2//  VowelDestroyerAppDelegate.m
 3//  VowelDestroyer
 4//
 5//  Created by Raul Zuniga on 4/17/12.
 6//  Copyright (c) 2012 Accenture. All rights reserved.
 7//
 8
 9#import "VowelDestroyerAppDelegate.h"
10#import "VowelDestroyer.h"
11
12@implementation VowelDestroyerAppDelegate
13
14@synthesize window = _window;
15
16- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
17{
18    // Override point for customization after application launch.
19    
20    [self.window makeKeyAndVisible];
21    NSString *originalString = @"Hello World";
22    NSLog(@"Original string: %@", originalString);
23    NSString *vowelFreeString = [originalString stringByDestroyingVowels];
24    NSLog(@"Vowel free string: %@", vowelFreeString);
25    NSString *hFreeString = [originalString stringByDestroyingH];
26    NSLog(@"Vowel free string: %@", hFreeString);
27
28    return YES;
29}
30							
31- (void)applicationWillResignActive:(UIApplication *)application
32{
33    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
34    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
35}
36
37- (void)applicationDidEnterBackground:(UIApplication *)application
38{
39    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
40    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
41}
42
43- (void)applicationWillEnterForeground:(UIApplication *)application
44{
45    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
46}
47
48- (void)applicationDidBecomeActive:(UIApplication *)application
49{
50    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
51}
52
53- (void)applicationWillTerminate:(UIApplication *)application
54{
55    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
56}
57
58@end