add UIScrollViewDelegate
to your interface and then play sound while the scrolling is in task in scrollViewWillBeginDragging
state and stop scrolling while in scrollViewDidEndDragging
state.
You can use AVAudioPlayer to play sound on iOS devices
UPDATE:
Tells the delegate when the scroll view is about to start scrolling the content.
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
Also, Tells the delegate when dragging ended in the scroll view.
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
Implement these in your code & put in your custom behavior
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…