To run the example project, clone the repo, and run
pod install from the Example directory first.
In the example project, you may tap on even rows to add more cells, and odd rows to decrease.
NonScrollView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NonScrollView' pod 'NonScrollView/Containers' # to install example containers that you should never use in production
You need to provide a
NonScrollView to layout subviews. A
NonScrollViewLayout consists of a few
NonScrollView to place its subviews, a block to generate contentSize and a block to generate contentInset.
ScrollViewChainController for example.
You may also treat
NonScrollView as a gesture recognizer. Please check
HeaderSegmentController for example.
You are not recommended to use any of the containers in
NonScrollView/Containers, they are for experiments only. Though they should work, edge cases may not be handled correctly.
NonScrollView is available under the MIT license. See the LICENSE file for more info.