Move log button to nav bar

This commit is contained in:
Adam Tunnic committed 2021-06-12 18:15:07 -04:00
1 parent 59d802f760
commit 8f09b42e2d
1 file changed
+1 -3
+1 -3
View File
@@ -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];