muZZkat / NMRangeSlider

A custom range slider for iOS
MIT License
740 stars 228 forks source link

layoutSubviews crash due to a division by zero in trackRect #38

Open nferruzzi opened 10 years ago

nferruzzi commented 10 years ago

This is easy to reproduce, just set the same value for maximumValue and minimumValue. I understand this may have not sense for the slider, still imho it would be cool to see a graceful degradation (maybe handlers could disappear?) and not a crash. Thank you

muZZkat commented 10 years ago

Thanks, I will check it out.

patelmayank commented 10 years ago

@muZZkat this error comes when its at zero Position " : CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. "