2017-02-17 70 views
-3

我想創建一個類似的收集視圖![這] [1]如何使用水平滾動來創建多部分tableview,如下圖所示?

[1]:https://i.stack.imgur.com/Wwqas.png圖像在tableview中,但我不知道該怎麼做。我的數據來自使用Web服務的服務器。

如何做到這一點?

+1

爲此,您可以在'UITableViewCell'中添加'UICollectionView'。 –

+0

看到這個https://contentpedlar.wordpress.com/2016/10/22/uicollectionview-in-uitableview/和https://ashfurrow.com/blog/putting-a-uicollectionview-in-a-uitableviewcell-in-迅速/ –

回答

0

你將不得不使用UICollectionView您的自定義的UITableViewCell內。

流程應該是這樣的:

UITableViewCell --> UICollectionView --> UICollectionViewCell 

enter image description here

1

這好像裏面的UITableViewCell UICollectionView獨立滾動

請通過下面的鏈接,詳細...

Click here