Disable UIScrollView scrolling when UITextField becomes first responder
问题 When a UITextField , embedded in a UIScrollView becomes first responder, by lets say the user typing in some character, the UIScrollView scrolls to that Field automatically, is there any way to disable that? Duplicate rdar://16538222 over 回答1: Building on Moshe's answer... Subclass UIScrollView and override the following method: - (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated Leave it empty. Job done! 回答2: I've been struggling with the same problem, and at last I've found a