Skip to content

LLSegmentViewController 中 open func selected(at Index:NSInteger,animation:Bool) 方法无效 #21

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

Open
Steve-001 opened this issue Jun 30, 2021 · 0 comments

Comments

@Steve-001
Copy link

问题描述:
LLSegmentViewController 中
open func selected(at Index:NSInteger,animation:Bool){} 方法无效

`
open func selected(at Index:NSInteger,animation:Bool) {
guard (ctls.count < Index && Index > 0) else {
return
}
segmentCtlView.selected(at: Index, animation: animation)
}

`

此处的 guard 判断 应该是 (ctls.count > Index && Index > 0), 吧?

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

1 participant