From d916043c034d99b341b07830e1815e9422f4311b Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 15 Oct 2017 13:22:32 +0200 Subject: [PATCH] iOS: Implement search / filtering --- iOS/AddSiteController.m | 10 ++-- iOS/Base.lproj/Main.storyboard | 83 +++++++++++++++++++++++----------- iOS/MainViewController.h | 8 +++- iOS/MainViewController.m | 24 +++++++++- iOS/ShowDetailsController.m | 2 +- iOS/SiteStorage.h | 4 +- iOS/SiteStorage.m | 19 +++++--- 7 files changed, 103 insertions(+), 47 deletions(-) diff --git a/iOS/AddSiteController.m b/iOS/AddSiteController.m index e6dcd93..e45fca1 100644 --- a/iOS/AddSiteController.m +++ b/iOS/AddSiteController.m @@ -85,12 +85,10 @@ showAlert(UIViewController *controller, NSString *title, NSString *message) return; } - [self.mainViewController.siteStorage - setSite: name - length: length - legacy: self.legacySwitch.on]; - - [self.mainViewController.tableView reloadData]; + [self.mainViewController.siteStorage setSite: name + length: length + legacy: self.legacySwitch.on]; + [self.mainViewController reset]; [self.navigationController popViewControllerAnimated: YES]; } diff --git a/iOS/Base.lproj/Main.storyboard b/iOS/Base.lproj/Main.storyboard index 2f7cee6..4786838 100644 --- a/iOS/Base.lproj/Main.storyboard +++ b/iOS/Base.lproj/Main.storyboard @@ -1,8 +1,11 @@ - + + + + - + @@ -12,7 +15,7 @@ - + @@ -39,9 +42,14 @@ + + + + + @@ -73,6 +81,7 @@ + @@ -94,6 +103,7 @@ + @@ -129,13 +139,14 @@ - + - + + @@ -159,13 +171,14 @@ - + - + + @@ -193,13 +207,14 @@ - + - + - + + + @@ -264,13 +281,14 @@ - + - + + @@ -294,13 +313,14 @@ - + - + + @@ -328,13 +349,14 @@ - + - + - + + + @@ -357,13 +381,14 @@ - + - + + @@ -394,13 +420,14 @@ - + - + - + - + - + - + @@ -474,8 +502,11 @@ - + + +