「Swift」UIButtonのisEnabledを使うサンプル
方法1
- (void)scrollViewDidScroll:(UIScrollView *)scrollView { scrollView.bounces = NO; }
方法2
- (void)scrollViewDidScroll:(UIScrollView *)scrollView { //ドラッグ条件判定 if (scrollView.isDragging) { scrollView.bounces = NO; } else { scrollView.bounces = YES; } }