Closed shripadkulkarnid closed 7 years ago
Hi @shripadkulkarid
Please update pod to latest version, pod ’SJSegmentedScrollView’, ‘1.3.5'
and extendSJSegmentedViewControllerDelegate
-> func didMoveToPage(controller: UIViewController, segment: SJSegmentTab?, index: Int)
function.
eg:-
var selectedSegment: SJSegmentTab?
func didMoveToPage(_ controller: UIViewController, segment: SJSegmentTab?, index: Int) {
if selectedSegment != nil { //previous segment
selectedSegment?.titleColor(.lightGray)
}
if segments.count > 0 {
selectedSegment = segments[index]
selectedSegment?.titleColor(.red)
}
}
Thx it will help me.....
When i select title it change color.But When i select next title previous color remains same.How to change that one title color?Please Reply ASAP