rs / SDSegmentedControl

A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls
MIT License
1.2k stars 180 forks source link

Fix assert in '- setSelectedSegmentIndex:' when a negative parameter is given (e.g., UISegmentedControlNoSegment) #10

Closed exalted closed 11 years ago

exalted commented 11 years ago

This is a pretty common issue when comparing signed and unsigned integers, casting is necessary.