Skip to content

harkmall/MHSegmentedControl

Repository files navigation

MHSegmentedControl

A segmented control thing that looks cooler than the default one. It also has cool animations.

Screenshot#1

##Installation

Drag the MHSegmentedControl.[hm] into your project

##Usage

Initialize a new segmented control with the - (instancetype)initWithFrame:(CGRect)frame Option:(NSString *)option1 andOption:(NSString *)option2 backgroundColor:(UIColor *)backgroundColor selectedIndex:(NSInteger)selectedIndex; method.

There is also a delegate that gets notified when the selected index changes:

@protocol MHSegmentedControlDelegate <NSObject>

- (void)didTransitionToIndex:(NSInteger)index;

@end

##Project Next Steps

  • Allow more than 2 options

##License

See LICENSE file

Feel free to edit and make it better!

##Contact

Hit me up on twitter: @softieeng

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published