LLSegmentViewController
LLSegmentViewController copied to clipboard
LLSegmentViewController 中 open func selected(at Index:NSInteger,animation:Bool) 方法无效
问题描述: 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), 吧?