escoz / QuickDialog

QuickDialog - Quick and easy dialog screens for iOS
http://escoz.com/open-source/quickdialog
Other
3.08k stars 637 forks source link

hide text during typing #747

Closed thanhtungka91 closed 6 years ago

thanhtungka91 commented 6 years ago

Hey guys,

I am using QMultilineElement for implement text during the input text, the line has been changed position, is it bug?

QMultilineElement *descriptionSectionElement = [[QMultilineElement alloc] initWithTitle:@"test" Value:nil];
    descriptionSectionElement.delegate = self;
 [descriptionSection addElement:descriptionSectionElement];

Untitled.zip

thanhtungka91 commented 6 years ago

i see that the problem come from the file QuickDialog/quickdialog/QMultilineTextViewController.m up ? keyboardFrame.size.heigh : 0

[UIView animateWithDuration:animationDuration delay:0 options:animationCurve animations:^{ CGRect keyboardFrame = [self.view convertRect:keyboardEndFrame toView:nil]; _textView.contentInset = UIEdgeInsetsMake(0.0, 0.0, up ? keyboardFrame.size.heigh : 0, 0.0); } completion:NULL];

but i dont think that it is bug?