-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于tableview存在多种cell的问题 #1
Comments
要弄一个适合大多数人用的东西还有很多细节要完善,以后会添加的。 |
如果你cell的type依赖于dataRequest,同样在viewmodel 里面做request,再刷新,这要求一个viewmodel适配多种cell,这样会导致viewmodel变得庞大。或者在XTableDataDelegate和viewmodel之间再加一层,区分出cell的type,在分发给每个cell对应的viewmodel。如果tableview是静态的话就很简单了 |
我写了个例子,你们具体的可以根据实际开发需要去改动代码以迎合自己开发的需求 |
who tell me what the delegate is ? I always can't understand it . |
欢迎加群交流 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请问你写的框架在单个tableview中有多种cell的时候,应该如何写
The text was updated successfully, but these errors were encountered: