Revert the fix for keyboard stickiness, rename inputAccessoryView

This commit is contained in:
ismailgulek
2022-08-15 14:49:24 +03:00
parent 5db71c92c7
commit 4f71fe7e1c
5 changed files with 10 additions and 7 deletions

View File

@@ -205,7 +205,7 @@ typedef enum : NSUInteger
UIView *messageComposerContainer;
@protected
UIView *inputAccessoryView;
UIView *inputAccessoryViewForKeyboard;
}
/**
@@ -333,7 +333,7 @@ typedef enum : NSUInteger
actually used to retrieve the keyboard view. Indeed the keyboard view is the superview of
the accessory view when the message composer become the first responder.
*/
@property (readonly) UIView *inputAccessoryView;
@property (readonly) UIView *inputAccessoryViewForKeyboard;
/**
Display the keyboard.

View File

@@ -61,7 +61,7 @@
@end
@implementation MXKRoomInputToolbarView
@synthesize messageComposerContainer, inputAccessoryView;
@synthesize messageComposerContainer, inputAccessoryViewForKeyboard;
+ (UINib *)nib
{
@@ -103,7 +103,7 @@
- (void)dealloc
{
inputAccessoryView = nil;
inputAccessoryViewForKeyboard = nil;
[self destroy];
}

View File

@@ -30,8 +30,8 @@
[super awakeFromNib];
// Add an accessory view to the text view in order to retrieve keyboard view.
inputAccessoryView = [[UIView alloc] initWithFrame:CGRectZero];
self.messageComposerTextView.inputAccessoryView = self.inputAccessoryView;
inputAccessoryViewForKeyboard = [[UIView alloc] initWithFrame:CGRectZero];
self.messageComposerTextView.inputAccessoryView = inputAccessoryViewForKeyboard;
}
-(void)customizeViewRendering