81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
-
+
-
-
-
+
+
-
-
+
|
if ([self.mainViewController.siteStorage hasSite: name]) {
showAlert(self, @"Site Already Exists",
@"Please pick a name that does not exist yet.");
return;
}
[self.mainViewController.siteStorage
[self.mainViewController.siteStorage setSite: name
setSite: name
length: length
legacy: self.legacySwitch.on];
length: length
legacy: self.legacySwitch.on];
[self.mainViewController.tableView reloadData];
[self.mainViewController reset];
[self.navigationController popViewControllerAnimated: YES];
}
- (IBAction)cancel: (id)sender
{
[self.navigationController popViewControllerAnimated: YES];
|