Skip to content

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

link to docs

roryclear6ee670c504c8
diff --git a/clearcam/SettingsViewController.m b/clearcam/SettingsViewController.m
index 67fb12d..266d162 100644
--- a/clearcam/SettingsViewController.m
+++ b/clearcam/SettingsViewController.m
@@ -41,6 +41,12 @@
[self.tableView reloadData];
});
}];
+
+ UIBarButtonItem *helpButton = [[UIBarButtonItem alloc] initWithTitle:@"Docs" style:UIBarButtonItemStylePlain target:self action:@selector(helpButtonTapped)];
+ [helpButton setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor systemBlueColor]}
+ forState:UIControlStateNormal];
+ self.navigationItem.rightBarButtonItem = helpButton;
+
// Register for subscription status change notifications
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(subscriptionStatusDidChange:)
@@ -168,6 +174,17 @@
[[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:@"DeviceIPAddress"];
}
+- (void)helpButtonTapped {
+ NSURL *helpURL = [NSURL URLWithString:@"https://github.com/roryclear/clearcam/?tab=readme-ov-file#clearcam"];
+ if ([[UIApplication sharedApplication] canOpenURL:helpURL]) {
+ if (@available(iOS 10.0, *)) {
+ [[UIApplication sharedApplication] openURL:helpURL options:@{} completionHandler:nil];
+ } else {
+ [[UIApplication sharedApplication] openURL:helpURL];
+ }
+ }
+}
+
- (void)updateIPAddressDisplay {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *ipAddress = [defaults stringForKey:@"DeviceIPAddress"];