scrolling in uitableview with uitextview -
i have uitableview custom uitableviewcell. hide keyboard user should scroll or down. reach implementing method
- (void)scrollviewwillbegindragging:(uiscrollview *)scrollview { if (_isenablehide) { [self resignfirstresponderforvisiblecells]; } }
but
when cell selected , keyboard on, try scroll strange behavior begins. begins scroll after keyboard disappears , scrollings stops .
i want uitableview down keyboard.
i try manually animation
.... tableview.contentinset = uiedgeinsetszero; tableview.scrollindicatorinsets = uiedgeinsetszero; .....
but after scrolling on tableview stops tableview down , tableview's insets negative keyboarheight. how scroll down tableview , keyboard or cancel auto moving down after scrolls stop make manually.
i've solved problem setting self.tableview.scrollenabled no , change after keyboard disappear yes. proper scrolling don't occur after that. solve manually scrolling tableview
cgrect rect = self.frame; if (isdown) { rect.origin.y +=somedistance; }else{ rect.origin.y -= somedistance; } [tableview scrollrecttovisible:rect animated:yes];
Comments
Post a Comment