OLEContainerScrollView
A UIScrollView subclass that intelligently handles multiple child scroll views and does not interfere with UIKitʼs cell reuse functionality.
Install / Use
/learn @ole/OLEContainerScrollViewREADME
OLEContainerScrollView
A UIScrollView subclass that intelligently handles multiple child scroll views and does not interfere with UIKitʼs cell reuse functionality.
Written by Ole Begemann, May 2014.
⚠️ No maintenance ⚠️
This project is not being maintained. I’m not using it myself and I don’t want to spend time on it adding more features. I still think the code contains some good ideas. Feel free to read the code and take ideas from it and/or maintain your own fork.
Blog Post
Please read my blog post about OLEContainerScrollView for details about the implementation.
Demo App
To check out the demo app:
- Clone this repository.
- Open
OLEContainerScrollViewDemo.xcodeprojin Xcode.
The demo app uses a class I have written named OLESimulatedTableView to illustrate how a UITableView reuses its cells.
Usage
- Manually clone this repository to your machine or add it as a Git submodule to your project.
- Drag the folder
OLEContainerScrollViewinto your Xcode project to add all the files in it to your project. #import "OLEContainerScrollView.h"- Create an
OLEContainerScrollViewinstead of a regularUIScrollView. - Add subviews (like table views, collection views, regular scroll views, or just other regular views) to the scroll view’s
contentView. Check out the comments inOLEContainerScrollView.h.
License
Published under the MIT License. See the LICENSE file for details.
Related Skills
node-connect
348.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
