Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

remember the setting

roryclear6fa73bb50b72
diff --git a/clearcam/SettingsViewController.m b/clearcam/SettingsViewController.m
index e6b665b..5d111ff 100644
--- a/clearcam/SettingsViewController.m
+++ b/clearcam/SettingsViewController.m
@@ -17,8 +17,9 @@
self.view.backgroundColor = [UIColor systemBackgroundColor];
self.title = @"Settings";
- // Default resolution
- self.selectedResolution = @"1080p";
+ // Initialize selectedResolution based on SettingsManager's height
+ SettingsManager *settingsManager = [SettingsManager sharedManager];
+ self.selectedResolution = [NSString stringWithFormat:@"%@p", settingsManager.height];
// Create table view
self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleInsetGrouped];