[iOS] How to Disable/Prohibit Scrolling in UIScrollView and UITableView
I’ll introduce how to disable scrolling operations in UIScrollView and UITableView for iOS app development.
//Enable scrolling
[scrollView setScrollEnabled:YES];
//Disable scrolling
[scrollView setScrollEnabled:NO];
You can toggle scroll enable/disable with setScrollEnabled.
That’s all from the Gemba.