From f2ad6e8f2bbca27cb9c4777adb581d169c77057b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 4 Mar 2018 17:24:13 +0300 Subject: layout fixes --- Juick/Main.storyboard | 88 +++++++++++--------------- Juick/Supporting Files/Juick-Info.plist | 2 +- Juick/ViewControllers/ChatViewController.m | 2 +- Juick/ViewControllers/DialogsViewController.m | 2 +- Juick/ViewControllers/DiscoverViewController.m | 10 +-- 5 files changed, 44 insertions(+), 60 deletions(-) diff --git a/Juick/Main.storyboard b/Juick/Main.storyboard index d6698e4..2a274d9 100644 --- a/Juick/Main.storyboard +++ b/Juick/Main.storyboard @@ -1,5 +1,5 @@ - + @@ -10,27 +10,21 @@ - - + + - - - - + + - - - - - + - + - + @@ -72,9 +66,26 @@ + + + + + + + + + + + + + + + + + - + @@ -90,20 +101,8 @@ - - - - - - - - - - - - - - + + @@ -125,7 +124,7 @@ - + @@ -248,30 +247,13 @@ - - + + - - - - - - - - - - - - - - - - - @@ -281,7 +263,7 @@ - + @@ -349,14 +331,15 @@ + - - + + @@ -367,6 +350,7 @@ + diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist index f04104f..c50b6d6 100644 --- a/Juick/Supporting Files/Juick-Info.plist +++ b/Juick/Supporting Files/Juick-Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 46 + 47 ITSAppUsesNonExemptEncryption LSApplicationCategoryType diff --git a/Juick/ViewControllers/ChatViewController.m b/Juick/ViewControllers/ChatViewController.m index f88bfa5..e94bb40 100644 --- a/Juick/ViewControllers/ChatViewController.m +++ b/Juick/ViewControllers/ChatViewController.m @@ -18,7 +18,7 @@ - (void)viewDidLoad { [super viewDidLoad]; - + [self.navigationController.visibleViewController setTitle:self.uname]; [self.tableView registerNib:[UINib nibWithNibName:@"BubbleMessageCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"bubbleMessageCell"]; self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive; diff --git a/Juick/ViewControllers/DialogsViewController.m b/Juick/ViewControllers/DialogsViewController.m index 878e912..4f89814 100644 --- a/Juick/ViewControllers/DialogsViewController.m +++ b/Juick/ViewControllers/DialogsViewController.m @@ -20,7 +20,7 @@ - (void)viewDidLoad { [super viewDidLoad]; - + [self.navigationController.visibleViewController setTitle:@"Chats"]; [self.view setBackgroundColor:[ColorScheme mainBackground]]; [self.tableView registerNib:[UINib nibWithNibName:@"ConversationCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"notificationCell"]; self.chats = [NSMutableArray array]; diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index 1b1a0a1..c874c25 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -28,7 +28,7 @@ AppDelegate *appDelegate; if (success) { if ([self.path length] == 0) { self.path = [APIClient feedUrl]; - [self setTitle:@"My feed"]; + [self.navigationController.visibleViewController setTitle:@"My feed"]; } [self refreshData:NO]; } else { @@ -39,7 +39,7 @@ AppDelegate *appDelegate; } else { if ([self.path length] == 0) { self.path = [APIClient messagesUrl]; - [self setTitle:@"Discover"]; + [self.navigationController.visibleViewController setTitle:@"Discover"]; } [self refreshData:NO]; } @@ -77,7 +77,7 @@ AppDelegate *appDelegate; UIAlertController *filterAlert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"My feed" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { - [self setTitle:@"My feed"]; + [self.navigationController.visibleViewController setTitle:@"My feed"]; self.path = [APIClient feedUrl]; self.params = nil; [self.messages removeAllObjects]; @@ -85,7 +85,7 @@ AppDelegate *appDelegate; [self refreshData:NO]; }]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Discover" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { - [self setTitle:@"Discover"]; + [self.navigationController.visibleViewController setTitle:@"Discover"]; self.path = [APIClient messagesUrl]; self.params = nil; [self.messages removeAllObjects]; @@ -93,7 +93,7 @@ AppDelegate *appDelegate; [self refreshData:NO]; }]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Discussions" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { - [self setTitle:@"Discussions"]; + [self.navigationController.visibleViewController setTitle:@"Discussions"]; self.path = [APIClient discussionsUrl]; self.params = nil; [self.messages removeAllObjects]; -- cgit v1.2.3