• Stars
    star
    150
  • Rank 247,323 (Top 5 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 10 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UICollectionView in UITableView with Swift

DHCollectionTableView

用Swift实现UITableView内嵌套UICollectionView的效果如下:


不用担心每个item的索引获取


How to use

// source就是要显示的数据,图片什么的,随意啦, format: Array<Array<AnyObject>>
let viewController = DHCollectionTableViewController(source: mutableArray)
self.root = UINavigationController(rootViewController: viewController)

Thanks

Ash Furrow's objc-proj on GitHub: https://github.com/AshFurrow/AFTabledCollectionView

License

These specifications and CocoaPods are available under the MIT license.