ios - (iOS7) Scroll to cursor in UITextView in UITableView in UIScrollView -
i have problem since updated ios7.
i have base uiscrollview
horizontally , there uitableview
on (looks navigation style). , addchild uitextview
on uitableview
not on cells.
and scrolled uitextview
's cursor when typing keyboard. , works until ios 6 not since updating ios7.
how can solve problem?
thanks.
handle textviewdidchangeselection
in uitextviewdelegate:
- (void)textviewdidchangeselection:(uitextview *)textview { [textview scrollrangetovisible:textview.selectedrange]; }
the exact solution depends on application, can handle subclassing uitextview prefer decorator pattern here (on uitextviewdelegate protocol).
i hope helps.
Comments
Post a Comment