OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 Google Inc. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "ActionViewController.h" |
| 6 #import <MobileCoreServices/MobileCoreServices.h> |
| 7 |
| 8 @interface ActionViewController () |
| 9 |
| 10 |
| 11 @end |
| 12 |
| 13 @implementation ActionViewController |
| 14 |
| 15 - (instancetype)initWithNibName:(NSString *)nibNameOrNil |
| 16 bundle:(NSBundle *)nibBundleOrNil { |
| 17 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; |
| 18 if (self) { |
| 19 // Custom initialization |
| 20 } |
| 21 return self; |
| 22 } |
| 23 |
| 24 - (void)viewDidLoad { |
| 25 [super viewDidLoad]; |
| 26 } |
| 27 |
| 28 - (void)didReceiveMemoryWarning { |
| 29 [super didReceiveMemoryWarning]; |
| 30 // Dispose of any resources that can be recreated. |
| 31 } |
| 32 |
| 33 - (IBAction)done { |
| 34 // Return any edited content to the host app. |
| 35 // This template doesn't do anything, so we just echo the passed in items. |
| 36 [self.extensionContext |
| 37 completeRequestReturningItems:self.extensionContext.inputItems |
| 38 completionHandler:nil]; |
| 39 } |
| 40 |
| 41 @end |
OLD | NEW |