rs / SDSegmentedControl

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

Avoid frames with fractional origins #28

Closed idpaterson closed 11 years ago

idpaterson commented 11 years ago

Fixes two conditions where the views can be aligned to fractional pixels, which causes poor rendering on non-retina screens.

This warrants additional testing before merging it in. We are using a simple 2-segment control and unfortunately I do not have the time for more complete test coverage. In that condition, the segments were always being aligned either vertically or horizontally to a fraction of a pixel.