Giter VIP home page Giter VIP logo

Comments (6)

ashfurrow avatar ashfurrow commented on September 21, 2024

Which line of code?

from collection-view-in-a-table-view-cell.

HikmatDashdamir avatar HikmatDashdamir commented on September 21, 2024

func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
guard let tableViewCell = cell as? TimeLineTableViewCustomCell else {return}

    let castSelf = self as! protocol <UICollectionViewDataSource, UICollectionViewDelegate>//THIS LINE

    tableViewCell.setTagsCollectionViewDataSourceDelegate(castSelf, forSection: indexPath.section)
    tableViewCell.tagsCollectionViewOffset = tagsStoredOffsets[indexPath.row] ?? 0
}

from collection-view-in-a-table-view-cell.

ashfurrow avatar ashfurrow commented on September 21, 2024

What version of Xcode/Swift are you using? I haven't updated this tutorial for Swift 3 yet. I'll open an issue.

from collection-view-in-a-table-view-cell.

HikmatDashdamir avatar HikmatDashdamir commented on September 21, 2024

I am using Swift 2 and xcode version is 7. Just for your information. This code works without any error for the different view. But it gives error now. I thinks there is problem in my viewcontroller maybe

from collection-view-in-a-table-view-cell.

gabovanlugo avatar gabovanlugo commented on September 21, 2024

Same thing here. I'm trying to create this example by just code (not using the IB), And I'm getting stuck when trying to use de Delegate and DataSource function.

screen shot 2016-10-15 at 8 14 13 pm

This is the function inside the Custom Cell Class:

screen shot 2016-10-15 at 8 14 25 pm

I'm missing something?

Cheers!

from collection-view-in-a-table-view-cell.

ashfurrow avatar ashfurrow commented on September 21, 2024

Sorry, I haven't had time to update this to Swift 3 yet. It looks like the ReviewViewController doesn't conform to the delegate/datasource protocols. Can you double-check that?

from collection-view-in-a-table-view-cell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.