Add object detection, tracking, mobile notifications, and search to any security camera.
better sched menu
roryclearcc961ed0be46
diff --git a/clearcam/ScheduleManagementViewController.m b/clearcam/ScheduleManagementViewController.mindex cce0af8..3083972 100644--- a/clearcam/ScheduleManagementViewController.m+++ b/clearcam/ScheduleManagementViewController.m@@ -14,8 +14,21 @@self.tableView.allowsMultipleSelection = NO;[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"ScheduleCell"];+ // Add "Add" buttonUIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addScheduleTapped:)];self.navigationItem.rightBarButtonItem = addButton;++ // Add "Done" button+ UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(doneTapped:)];+ self.navigationItem.leftBarButtonItem = doneButton;+}++- (void)doneTapped:(id)sender {+ // Save changes and pop back+ if (self.completionHandler) {+ self.completionHandler(self.emailSchedules);+ }+ [self.navigationController popViewControllerAnimated:YES];}- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {@@ -106,13 +119,6 @@[self.navigationController pushViewController:editorVC animated:YES];}-- (void)viewWillDisappear:(BOOL)animated {- [super viewWillDisappear:animated];- if (self.completionHandler) {- self.completionHandler(self.emailSchedules);- }-}-@end@implementation ScheduleEditorViewControllerdiff --git a/clearcam/SettingsViewController.m b/clearcam/SettingsViewController.mindex ba2269b..6a02a4c 100644--- a/clearcam/SettingsViewController.m+++ b/clearcam/SettingsViewController.m@@ -478,8 +478,8 @@[defaults synchronize];[self.tableView reloadData];};- UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:scheduleVC];- [self presentViewController:navController animated:YES completion:nil];+ // Push instead of present+ [self.navigationController pushViewController:scheduleVC animated:YES];} else if (self.useOwnEmailServerEnabled && self.isEmailServerSectionExpanded && indexPath.row == 11 + offset) {[self showEmailServerAddressInputDialog];} else if (self.useOwnEmailServerEnabled && self.isEmailServerSectionExpanded && indexPath.row == 12 + offset) {