/SDSegmentedControl

A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls

Primary LanguageObjective-CMIT LicenseMIT

Segmented Control

A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls.

The only good piece of UI to extract for this terrible app

Features:

  • Interface Builder support (just throw a UISegmentedControl and change its class SDSegmentedControl)
  • Animated segment selection
  • Content aware dynamic segment width

TODO:

  • Appearance customization thru UIAppearance
  • Disabled state
  • Custom segment width

Usage

Import SDSegmentedControl.h and SDSegmentedControl.m into your project and add QuartzCore framework to Build Phases -> Link Binary With Libraries.

You can then use SDSegmentedControl class as you would use normal UISegmentedControl.

Known Issues

The background mask doesn't animate when resized. If someone has a solution for this, please send a pull request.