Index: samples/todomvc/ios/TodoMVC/AddTodoItemViewController.mm |
diff --git a/samples/todomvc/ios/TodoMVC/AddTodoItemViewController.mm b/samples/todomvc/ios/TodoMVC/AddTodoItemViewController.mm |
deleted file mode 100644 |
index 35fcf3c1967f0e768aa464821ebb2a075ee7361e..0000000000000000000000000000000000000000 |
--- a/samples/todomvc/ios/TodoMVC/AddTodoItemViewController.mm |
+++ /dev/null |
@@ -1,41 +0,0 @@ |
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE.md file. |
- |
-#import "AddTodoItemViewController.h" |
- |
-@interface AddTodoItemViewController () |
- |
-@property (weak, nonatomic) IBOutlet UITextField *textField; |
-@property (weak, nonatomic) IBOutlet UIBarButtonItem *saveButton; |
- |
-@end |
- |
-@implementation AddTodoItemViewController |
- |
-- (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. |
- if (sender != self.saveButton || self.textField.text.length <= 0) { |
- self.todoItem = nil; |
- return; |
- } |
- self.todoItem = [[TodoItem alloc] init]; |
- self.todoItem.itemName = self.textField.text; |
- self.todoItem.completed = NO; |
-} |
- |
-@end |