简体   繁体   English

如何在UIScrollView中复制UITableView

[英]How to replicate a UITableView inside a UIScrollView

I wanted to do a simple pagination inside a UIScrollView and within each page will have a TableView. 我想在UIScrollView做一个简单的分页,每个页面内都有一个TableView。 For now, my first page always loaded with a UITableView , and how can I replicate it to another page too? 现在,我的第一页总是加载了UITableView ,我怎样才能将它复制到另一个页面呢?

Is there any references link for this? 这有什么参考链接吗?

Check ATPagingView : https://github.com/andreyvit/SoloComponents-iOS 检查ATPagingView: https//github.com/andreyvit/SoloComponents-iOS

I wanted to do exactly you seem to want to do, and ATPagingView helped me achieve it :) 我想做你想做的事情,ATPagingView帮我实现了:)

Try the demo project, and in DemoViewController replace self.pagingView.horizontal = NO; 尝试演示项目,并在DemoViewController替换self.pagingView.horizontal = NO; by self.pagingView.horizontal = YES; by self.pagingView.horizontal = YES; to get horizontal paging instead of vertical paging 得到水平分页而不是垂直分页

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM