Skip to content

ngrichyj4/SDSegmentedControl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • Horizontal scrolling when tabs don't fit

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published