From 8f09b42e2d5e64449c9dc5548c1dcfa8330aba9b Mon Sep 17 00:00:00 2001 From: Adam Tunnic Date: Sat, 12 Jun 2021 18:15:07 -0400 Subject: [PATCH] Move log button to nav bar --- Natives/AboutLauncherViewController.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Natives/AboutLauncherViewController.m b/Natives/AboutLauncherViewController.m index 42030c9e..87535f59 100644 --- a/Natives/AboutLauncherViewController.m +++ b/Natives/AboutLauncherViewController.m @@ -72,9 +72,7 @@ [logoNoteView sizeToFit]; [self.view addSubview:logoNoteView]; - UIButton *logSendButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; - [logSendButton setTitle:@"Send your logs" forState:UIControlStateNormal]; - logSendButton.frame = CGRectMake(20, logoNoteView.frame.origin.y + logoNoteView.frame.size.height + 5, 100.0, 50.0); + self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Send your logs" style:UIBarButtonItemStyleDone target:self action:@selector(latestLogShare)]; logSendButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; [logSendButton addTarget:self action:@selector(latestLogShare) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:logSendButton];