Sunday, November 29, 2009

iPhone dev Stupidity 108: Scrolled UITextField

If a text field get focused during scrolling, the scrolling will stop.

So better to focus it when the scroll animation is done: 
 * for program triggered scroll: - (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView
 * for finger dragged scroll: - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView 

No comments: