在我的项目中,我在collectionView中使用了tableView,并且还使用了pageControl.当我水平滑动集合视图时,我也想切换pageControl,但它无法正常工作.我使用scrollViewDidScroll方法切换pageControl为collectionViewSwipes.但问题是,当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) 通过将 Fabric 添加到 iOS,它给了我错误,因为uploadDSYM那里没有这样的文件。已将 Fabric 添加到 aPOD并在添加POD文件后在构建项目时显示错误。
uploadDSYM:没有那个文件或目录
有什么帮助吗?