mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
Bug report: Painful refactor of the xib to put the popup into a scrollview so that we can dismiss the keyboard by dragging it
This commit is contained in:
@@ -101,16 +101,6 @@
|
||||
[sendScreenshotTapGesture setNumberOfTouchesRequired:1];
|
||||
[_sendScreenshotContainer addGestureRecognizer:sendScreenshotTapGesture];
|
||||
_sendScreenshotContainer.userInteractionEnabled = YES;
|
||||
|
||||
// Show a Done button to hide the keyboard
|
||||
UIToolbar *viewForDoneButtonOnKeyboard = [[UIToolbar alloc] init];
|
||||
[viewForDoneButtonOnKeyboard sizeToFit];
|
||||
|
||||
UIBarButtonItem *btnDoneOnKeyboard = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStyleDone target:self action:@selector(onKeyboardDoneButtonPressed:)];
|
||||
|
||||
viewForDoneButtonOnKeyboard.items = @[btnDoneOnKeyboard];
|
||||
|
||||
_bugReportDescriptionTextView.inputAccessoryView = viewForDoneButtonOnKeyboard;
|
||||
}
|
||||
|
||||
- (void)setSendLogs:(BOOL)sendLogs
|
||||
@@ -230,9 +220,4 @@
|
||||
self.sendScreenshot = !self.sendScreenshot;
|
||||
}
|
||||
|
||||
- (IBAction)onKeyboardDoneButtonPressed:(id)sender
|
||||
{
|
||||
[_bugReportDescriptionTextView resignFirstResponder];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user