From 59126b3d04b23357bc8fb2bbbd9137fa358bec20 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Fri, 9 Mar 2018 04:32:52 +0100 Subject: [PATCH] Removes boilerplate code from ObjC sample --- .../DefaultLayoutViewController.m | 10 --------- .../UILibOCSample/MainViewController.m | 5 ----- .../PanelsCollectionsViewController.m | 15 ------------- .../UILibOCSample/WidgetsViewController.m | 21 ------------------- 4 files changed, 51 deletions(-) diff --git a/Sample Code/ObjcSampleCode/UILibOCSample/DefaultLayoutViewController.m b/Sample Code/ObjcSampleCode/UILibOCSample/DefaultLayoutViewController.m index c7c4ec2f..fa6daa74 100644 --- a/Sample Code/ObjcSampleCode/UILibOCSample/DefaultLayoutViewController.m +++ b/Sample Code/ObjcSampleCode/UILibOCSample/DefaultLayoutViewController.m @@ -15,16 +15,6 @@ - (IBAction)onBackButtonClicked:(id)sender; @implementation DefaultLayoutViewController -- (void)viewDidLoad { - [super viewDidLoad]; - // Do any additional setup after loading the view. -} - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - - (IBAction)onBackButtonClicked:(id)sender { [self dismissViewControllerAnimated:YES completion:nil]; diff --git a/Sample Code/ObjcSampleCode/UILibOCSample/MainViewController.m b/Sample Code/ObjcSampleCode/UILibOCSample/MainViewController.m index 29036448..d8b8158b 100644 --- a/Sample Code/ObjcSampleCode/UILibOCSample/MainViewController.m +++ b/Sample Code/ObjcSampleCode/UILibOCSample/MainViewController.m @@ -49,11 +49,6 @@ - (void)viewDidLoad { } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - - (IBAction)registerButton:(id)sender { [self registerWithProduct]; diff --git a/Sample Code/ObjcSampleCode/UILibOCSample/PanelsCollectionsViewController.m b/Sample Code/ObjcSampleCode/UILibOCSample/PanelsCollectionsViewController.m index 66d5c345..50a05a12 100644 --- a/Sample Code/ObjcSampleCode/UILibOCSample/PanelsCollectionsViewController.m +++ b/Sample Code/ObjcSampleCode/UILibOCSample/PanelsCollectionsViewController.m @@ -113,21 +113,6 @@ - (void)moveWidget } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - -/* - #pragma mark - Navigation - - // In a storyboard-based application, you will often want to do a little preparation before navigation - - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { - // Get the new view controller using [segue destinationViewController]. - // Pass the selected object to the new view controller. - } - */ - - (IBAction)onBackButtonClicked:(id)sender { [self dismissViewControllerAnimated:YES completion:nil]; diff --git a/Sample Code/ObjcSampleCode/UILibOCSample/WidgetsViewController.m b/Sample Code/ObjcSampleCode/UILibOCSample/WidgetsViewController.m index 58e5d96f..0219af9f 100644 --- a/Sample Code/ObjcSampleCode/UILibOCSample/WidgetsViewController.m +++ b/Sample Code/ObjcSampleCode/UILibOCSample/WidgetsViewController.m @@ -15,27 +15,6 @@ - (IBAction)onBackButtonClicked:(id)sender; @implementation WidgetsViewController -- (void)viewDidLoad { - [super viewDidLoad]; - // Do any additional setup after loading the view. -} - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - -/* -#pragma mark - Navigation - -// In a storyboard-based application, you will often want to do a little preparation before navigation -- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { - // Get the new view controller using [segue destinationViewController]. - // Pass the selected object to the new view controller. -} -*/ - - - (IBAction)onBackButtonClicked:(id)sender { [self dismissViewControllerAnimated:YES completion:nil];