Skip to content

Lunarpad/ObjC-SegmentedControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

SegmentedControl

Description

A simple segmented control view for iOS 7.

Installation

Simply plop this repo into your project, and you should be good to go.

Usage

@interface LPSegmentedControl : UIView

- (id)initWithFrame:(CGRect)frame andButtonTitles:(NSArray *)buttonTitles andTintColor:(UIColor *)tintColor andDelegate:(id<LPSegmentedControlDelegate>)delegate;

- (void)selectButtonAtIndex:(NSUInteger)buttonIndex;

@end



@protocol LPSegmentedControlDelegate <NSObject>

- (void)segmentedControl:(LPSegmentedControl *)segmentedControl buttonTappedWithIndex:(NSUInteger)buttonIndex andTitle:(NSString *)title;

@end

About

A simple segmented control view for iOS 7

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published