DRPageScrollView
Block-driven paginated scroll view
Install / Use
/learn @davdroman/DRPageScrollViewREADME
THIS PROJECT IS NO LONGER MAINTAINED. HERE ARE SOME SUITABLE ALTERNATIVES:
- https://github.com/WenchaoD/FSPagerView
- https://github.com/rechsteiner/Parchment
- https://github.com/uias/Pageboy
DRPageScrollView
<p align="center"> <img src="Assets/1.gif" alt="GIF 1" width="320px" /> </p>Features
- Block-driven page setup.
- Auto Layout friendly.
- Page reusability à la UITableView reusable cells.
Installation
CocoaPods
pod 'DRPageScrollView'
Manual
Drag and copy all files in the DRPageScrollView folder into your project.
At a glance
Enabling page reusability
Enabling page reusability is ridiculously simple:
pageScrollView.pageReuseEnabled = YES;
Note: pageReuseEnabled is meant to be set to the desired value before adding any pages to the page scroll view.
Adding a page
Using Auto Layout on the subviews is not compulsory, but it's highly recommended. For the sake of simplicity, the example below doesn't contain Auto Layout code.
[pageScrollView addPageWithHandler:^(UIView *pageView) {
UIView *squareView = [UIView new];
squareView.backgroundColor = [UIColor redColor];
squareView.frame = CGRectMake(50, 50, 100, 100);
[pageView addSubview:squareView];
}];
License
DRPageScrollView is available under the MIT license.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.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
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
