Add object detection, tracking, mobile notifications, and search to any security camera.
landscape
roryclear41d402368fcd
diff --git a/clearcam/GalleryViewController.m b/clearcam/GalleryViewController.mindex 6d53853..42e34cb 100644--- a/clearcam/GalleryViewController.m+++ b/clearcam/GalleryViewController.m@@ -113,18 +113,29 @@}- (void)setupTableView {- self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];+ self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];self.tableView.delegate = self;self.tableView.dataSource = self;self.tableView.backgroundColor = [UIColor systemBackgroundColor];[self.tableView registerClass:[VideoTableViewCell class] forCellReuseIdentifier:@"VideoCell"];self.tableView.separatorInset = UIEdgeInsetsMake(0, 16, 0, 16);[self.view addSubview:self.tableView];++ // Enable Auto Layout+ self.tableView.translatesAutoresizingMaskIntoConstraints = NO;++ // Pin to safe area+ [NSLayoutConstraint activateConstraints:@[+ [self.tableView.topAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.topAnchor],+ [self.tableView.leadingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.leadingAnchor],+ [self.tableView.trailingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.trailingAnchor],+ [self.tableView.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor]+ ]];}- (void)viewWillLayoutSubviews {[super viewWillLayoutSubviews];- self.tableView.frame = self.view.bounds;+ self.tableView.frame = self.view.safeAreaLayoutGuide.layoutFrame;}- (NSDate *)latestDownloadedFileDate {