小编ash*_*123的帖子

如何在Tableview里面的Collectionview中使用pageControl?

在我的项目中,我在collectionView中使用了tableView,并且还使用了pageControl.当我水平滑动集合视图时,我也想切换pageControl,但它无法正常工作.我使用scrollViewDidScroll方法切换pageControlcollectionViewSwipes.但问题是,当tableView scrollls scrollViewDidScroll方法将再次调用时.那么有什么不同的方法或任何解决方案来解决这个问题.

请查看以下链接.

在此输入链接描述

TableView方法

func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int 
{
     return model.count
}

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell 
{
     cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! FbHomeCell
     cell.btnPushImage.tag = indexPath.row
     cell.collectionView.tag = indexPath.row
     return cell
}
Run Code Online (Sandbox Code Playgroud)

CollectionView方法

func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
{
     return model[collectionView.tag].count
}

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
{
      collCell = collectionView.dequeueReusableCell(withReuseIdentifier: …
Run Code Online (Sandbox Code Playgroud)

uitableview pagecontrol uicollectionview swift swift3

10
推荐指数
1
解决办法
5625
查看次数

ios 中的 Fabric 安装错误为“uploadDSYM:没有这样的文件或目录”?

通过将 Fabric 添加到 iOS,它给了我错误,因为uploadDSYM那里没有这样的文件。已将 Fabric 添加到 aPOD并在添加POD文件后在构建项目时显示错误。

uploadDSYM:没有那个文件或目录

有什么帮助吗?

xcode ios crashlytics google-fabric

1
推荐指数
1
解决办法
1434
查看次数