Skip to content

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

fix nav buttons

roryclearc02833d062f5
diff --git a/ios/clearcam/GalleryViewController.m b/ios/clearcam/GalleryViewController.m
index 4bb507c..3522cb0 100644
--- a/ios/clearcam/GalleryViewController.m
+++ b/ios/clearcam/GalleryViewController.m
@@ -4,6 +4,8 @@
#import <AVKit/AVKit.h>
#import <AVFoundation/AVFoundation.h>
#import "LiveViewController.h"
+#import "ViewController.h"
+#import "SettingsViewController.h"
@interface VideoTableViewCell : UITableViewCell
@property (nonatomic, strong) UIImageView *thumbnailView;
@@ -894,13 +896,13 @@
}
- (void)cameraTapped {
- UIViewController *cameraVC = [[UIViewController alloc] init];
- [self presentViewController:cameraVC animated:YES completion:nil];
+ ViewController *cameraVC = [[ViewController alloc] init];
+ [self.navigationController pushViewController:cameraVC animated:YES];
}
- (void)settingsTapped {
- UIViewController *settingsVC = [[UIViewController alloc] init];
- [self presentViewController:settingsVC animated:YES completion:nil];
+ SettingsViewController *settingsVC = [[SettingsViewController alloc] init];
+ [self.navigationController pushViewController:settingsVC animated:YES];
}
@end