A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls
Pull request Compare This branch is 79 commits behind rs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
Screenshots
MIT-LICENSE
README.md
SDSegmentedControl.h
SDSegmentedControl.m

README.md

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.