Skip to content

STSegmentedControl is a drop-in replacement for UISegmentedControl. It has everything you need to display a custom nice-looking segmented control.

License

Notifications You must be signed in to change notification settings

SkyTrix/STSegmentedControl

Repository files navigation

#STSegmentedControl

###About

This is a custom class I wrote to enable use of own images in UISegmentedControl. I started with a UIControl subclass and tried to make it behave as much as possible like UISegmentedControl. This implementation also allows use of icons in the segments.

###Usage

Using STSegmentedControl is straightforward. If you change your instances of UISegmentedControl to STSegmentedControl, most things will likely work.

My implementation does however have certain requirements for the images. The images are partially being overlaid, so you may have to fiddle with your shadows/transparency a little. You can check out the demo images to see how it's done.

Hit me up on Twitter or send me an email.

About

STSegmentedControl is a drop-in replacement for UISegmentedControl. It has everything you need to display a custom nice-looking segmented control.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published