akkyie / AKPickerView

A simple yet customizable horizontal picker view.
MIT License
894 stars 106 forks source link

How do I set function scrollViewDidEndDecelerating using AKPickerView #52

Open kanamookob opened 9 years ago

kanamookob commented 9 years ago

I use UIScrollViewDelegate protocol and try this:

func scrollViewDidScroll(scrollView: UIScrollView) {
    self.pickerView.backgroundColor = UIColor.whiteColor()
}
func scrollViewDidEndDecelerating(scrollView: UIScrollView) {
    self.pickerView.backgroundColor = UIColor.clearColor()
}

but it's not work because scrollViewDidEndDecelerationg method will call when scroll end but AKPickerView will scroll automatic to title and call scrollViewDidScroll again. How do I solve this ?

Thank you