简体   繁体   English

如何使用swift将UICollectionView实现到UITableviewCell中,或者水平添加tableview?

[英]How to implement UICollectionView into UITableviewCell using swift either add tableview horizontally?

Hello I have tried to use UICollectionView into UITableViewCell but it didn't work, I have to show in each UITableViewCell by adding dynamically multiple views but it scroll horizontally. 您好,我尝试过将UICollectionView应用于UITableViewCell,但没有用,我必须通过动态添加多个视图在每个UITableViewCell中进行显示,但它必须水平滚动。 Please help me I am beginner in swift. 请帮助我,我是新手。

Thanks in advance 提前致谢

I think you are looking for a horizontal picker view. 我认为您正在寻找水平选择器视图。 Try this AKPickerView 试试这个AKPickerView

You have to take tableview and take tableviewcell in the tableview. 您必须使用tableview并在tableview中使用tableviewcell。 After this you have to take collectionview in tableviewcell. 之后,您必须在tableviewcell中使用collectionview。 If you manage this in proper way you can get your answer.If not you can refer my code from below link.I set my code in tester.zip.You can download this from below link. 如果您以正确的方式进行管理,您将得到答案。否则,您可以从下面的链接中引用我的代码。我在tester.zip中设置了我的代码。您可以从下面的链接中下载该代码。 https://github.com/Mirant123/MIke/commit/91226c72f3f88b3201803e6b607f77f749c8b413 https://github.com/Mirant123/MIke/commit/91226c72f3f88b3201803e6b607f77f749c8b413

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

相关问题 如何实现横向无限滚动的UICollectionView? - How to implement horizontally infinite scrolling UICollectionView? 如何使用 IOS 12 在 UITableViewCell 中正确添加 UICollectionView - How to properly add an UICollectionView inside UITableViewCell using IOS 12 如何使用iOS的Swift 3在ViewController.swift中实现UICollectionView - How to implement UICollectionView within ViewController.swift using Swift 3 for iOS 如何创建水平动态UICollectionView单元格? 迅速 - How to create horizontally dynamic UICollectionView cells? Swift 迅速在UITableViewCell中自定义UICollectionView - Custom UICollectionView in UITableViewCell in swift 如何使用 UICollectionView iOS Swift 实现“标签布局”? - How to implement the "tags layout" using UICollectionView iOS Swift? 如何使用Swift在静态tableview的底部添加动态Tableview? - How to add Dynamic Tableview at the bottom of static tableview using Swift? 如何在 UICollectionView 中快速添加分页? - How to add pagination in UICollectionView in swift? 如何在UITableViewCell内部实现动态大小的UICollectionView? - How do you implement a dynamically sized UICollectionView inside of a UITableViewCell? 在Swift中以编程方式在UITableViewCell中创建一个UICollectionView - Make a UICollectionView in UITableViewCell programmatically in Swift
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM