Giter Site home page Giter Site logo

Comments (3)

pujiaxin33 avatar pujiaxin33 commented on June 27, 2024
  • 通过KVO获取scrollView.contentOffset.x不行吗?
  • 而且contentScrollView,本身就是你自己创建的,你可以实现它的scrollViewDidScroll方法啊
  • 然后cellWidth就是数据源的数据,怎么用delegate方法来实现呢?难道你想说的是类似于UITableView的dataSource代理方法?但是CategoryView没有必要用这个啊,代码是要集成在内部的。

from jxcategoryview.

hstdt avatar hstdt commented on June 27, 2024

@pujiaxin33

  1. 是可以拿到,但是我怕之后如果控件结构调整了,就可能会出问题。
  2. 这个没问题,可以自己实现。
  3. 这个我说的不对,应该是一个通过index获取cellWidth的方法更好些。

from jxcategoryview.

pujiaxin33 avatar pujiaxin33 commented on June 27, 2024

1、版本很稳定了,不会有结构调整了,除非大重构,显然可能性很小了。
3、数据源属性dataSource都暴露出来了,为什么还要通过index获取cellWidth呢?对于后去cellWidth是便利了,但是api却稍显多余。

from jxcategoryview.

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.