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

数量返回为0的情况下,依然会要数据 #4

Closed
csc-EricWu opened this issue Sep 19, 2019 · 2 comments
Closed

数量返回为0的情况下,依然会要数据 #4

csc-EricWu opened this issue Sep 19, 2019 · 2 comments

Comments

@csc-EricWu
Copy link

func numberOfRowsFor(roolingView: GYRollingNoticeView) -> Int

返回为0的情况下,依然会走
func rollingNoticeView(roolingView: GYRollingNoticeView, cellAtIndex index: Int) -> GYNoticeViewCell

@csc-EricWu
Copy link
Author

layoutCurrentCellAndWillShowCell方法改一下
guard let count = self.dataSource?.numberOfRowsFor(roolingView: self) , count > 0 else { return }

@maltsugar
Copy link
Owner

1.0.8已修复,感谢建议

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

2 participants