ios UIScrollView detect scroll direction UIScrollView 스크롤 방향을 얻는 방법입니다.아래 코드는 테이블뷰를 아래로 스크롤 했을 때 특정 버튼이 보여지고 위로 스크롤 했을 때는 버튼을 숨기는 기능을 구현할 때 쓰입니다. - (void)scrollViewDidScroll:(UIScrollView *)scrollView{ CGFloat yVelocity = [scrollView.panGestureRecognizer velocityInView:scrollView].y; if (yVelocity 0) { [writeBtn setHidden:NO];..