Skip to content
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

Closed
EasonH14 opened this issue Jan 5, 2016 · 5 comments
Closed

关于tableview存在多种cell的问题 #1

EasonH14 opened this issue Jan 5, 2016 · 5 comments

Comments

@EasonH14
Copy link

EasonH14 commented Jan 5, 2016

请问你写的框架在单个tableview中有多种cell的时候,应该如何写

@lovemo
Copy link
Owner

lovemo commented Jan 5, 2016

要弄一个适合大多数人用的东西还有很多细节要完善,以后会添加的。

@LinkRober
Copy link

如果你cell的type依赖于dataRequest,同样在viewmodel 里面做request,再刷新,这要求一个viewmodel适配多种cell,这样会导致viewmodel变得庞大。或者在XTableDataDelegate和viewmodel之间再加一层,区分出cell的type,在分发给每个cell对应的viewmodel。如果tableview是静态的话就很简单了

@lovemo
Copy link
Owner

lovemo commented Jan 5, 2016

我写了个例子,你们具体的可以根据实际开发需要去改动代码以迎合自己开发的需求

@Dolion-Hou
Copy link

who tell me what the delegate is ? I always can't understand it .

@lovemo
Copy link
Owner

lovemo commented Jan 8, 2016

欢迎加群交流

@lovemo lovemo closed this as completed Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants