Giter VIP home page Giter VIP logo

Comments (7)

maltsugar avatar maltsugar commented on June 15, 2024

兄弟 故意的啊,你看代码啊 回来时只开启第一个,第二个没开启
image

from rollingnotice.

Vutumn avatar Vutumn commented on June 15, 2024

好的老哥,我的问题。没注意看代码。

from rollingnotice.

Vutumn avatar Vutumn commented on June 15, 2024

还有个问题,我用的swift创建,为什么用你的代码,发现返回的cell为nil,然后我去GYRollingNoticeView.m 97行发现返回的为nil。然后用断点 po NSClassFromString(self.cellClsDict[identifier])和po NSClassFromString(self.cellClsDict["GYNoticeViewCell"])这两个打印出来的还不一样。前面那个为nil,后面那个为GYNoticeViewCell

from rollingnotice.

maltsugar avatar maltsugar commented on June 15, 2024

你注册cell了吗

from rollingnotice.

Vutumn avatar Vutumn commented on June 15, 2024

注册了

from rollingnotice.

Vutumn avatar Vutumn commented on June 15, 2024

noticeView.delegate = self
noticeView.dataSource = self
noticeView.register(GYNoticeViewCell.self, forCellReuseIdentifier: "GYNoticeViewCell")

let cell = rollingView.dequeueReusableCell(withIdentifier: "GYNoticeViewCell ")
cell?.textLabel.text = "放大到发疯的放大放大放大放大发呆发呆发呆发"
return cell

from rollingnotice.

maltsugar avatar maltsugar commented on June 15, 2024

稍等 现在有点忙 你先自己查查原因

from rollingnotice.

Related Issues (18)

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.