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 upscaling images smaller than -imageSize #27

Closed idpaterson closed 11 years ago

idpaterson commented 11 years ago

Avoids upscaling images that are smaller than -imageSize. Improves appearance of icons smaller than the default image size without requiring the image size to be changed.

This is especially helpful if the icons on some controls have different sizes. It effectively transforms the imageSize property into a maximum rather than an exact fit. This is just a convenience, the developer could set the proper imageSize but the maximum size concept is easier.