Skip to content

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

blank gallery

roryclear5fe589d6b198
diff --git a/clearcam/GalleryViewController.h b/clearcam/GalleryViewController.h
new file mode 100644
index 0000000..c8b86dc
--- /dev/null
+++ b/clearcam/GalleryViewController.h
@@ -0,0 +1,5 @@
+#import <UIKit/UIKit.h>
+
+@interface GalleryViewController : UIViewController
+
+@end
diff --git a/clearcam/GalleryViewController.m b/clearcam/GalleryViewController.m
new file mode 100644
index 0000000..61ec377
--- /dev/null
+++ b/clearcam/GalleryViewController.m
@@ -0,0 +1,14 @@
+// GalleryViewController.m
+#import "GalleryViewController.h"
+
+@implementation GalleryViewController
+
+- (void)viewDidLoad {
+ [super viewDidLoad];
+ self.view.backgroundColor = [UIColor systemBackgroundColor];
+ self.title = @"Events";
+ // Ensure the navigation bar is visible
+ self.navigationController.navigationBarHidden = NO;
+}
+
+@end
diff --git a/clearcam/ViewController.m b/clearcam/ViewController.m
index 8073119..e2c8e64 100644
--- a/clearcam/ViewController.m
+++ b/clearcam/ViewController.m
@@ -7,6 +7,7 @@
#import "StoreManager.h"
#import "SceneState.h"
#import "SettingsViewController.h"
+#import "GalleryViewController.h"
@interface ViewController ()
@@ -483,9 +484,9 @@ NSMutableDictionary *classColorMap;
}
}
-// New action method for gallery button
- (void)galleryButtonPressed {
- NSLog(@"Gallery button was pressed!");
+ GalleryViewController *galleryVC = [[GalleryViewController alloc] init];
+ [self.navigationController pushViewController:galleryVC animated:YES];
}
- (void)toggleRecording {