Small cleanup of the sample app

pull/1341/head
Jorge Canizales 10 years ago
parent 914d74ee37
commit 48e07dfa10
  1. 1
      src/objective-c/examples/Sample/Sample/AppDelegate.h
  2. 25
      src/objective-c/examples/Sample/Sample/AppDelegate.m
  3. 3
      src/objective-c/examples/Sample/Sample/ViewController.h
  4. 7
      src/objective-c/examples/Sample/Sample/ViewController.m

@ -37,6 +37,5 @@
@property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) UIWindow *window;
@end @end

@ -34,37 +34,12 @@
#import "AppDelegate.h" #import "AppDelegate.h"
@interface AppDelegate () @interface AppDelegate ()
@end @end
@implementation AppDelegate @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES; return YES;
} }
- (void)applicationWillResignActive:(UIApplication *)application {
// 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.
// 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.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// 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.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// 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.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// 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.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end @end

@ -34,7 +34,4 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
@interface ViewController : UIViewController @interface ViewController : UIViewController
@end @end

@ -40,14 +40,12 @@
#import <RemoteTest/Messages.pb.h> #import <RemoteTest/Messages.pb.h>
@interface ViewController () @interface ViewController ()
@end @end
@implementation ViewController @implementation ViewController
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
GRPCMethodName *method = [[GRPCMethodName alloc] initWithPackage:@"grpc.testing" GRPCMethodName *method = [[GRPCMethodName alloc] initWithPackage:@"grpc.testing"
interface:@"TestService" interface:@"TestService"
@ -74,9 +72,4 @@
[call startWithWriteable:responsesWriteable]; [call startWithWriteable:responsesWriteable];
} }
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end @end

Loading…
Cancel
Save