29 #import <Foundation/Foundation.h>
31 #define STSegmentedControlHeight 43.0
51 - (id)initWithItems:(NSArray *)items;
53 - (void)insertSegmentWithTitle:(NSString *)title atIndex:(NSUInteger)index;
54 - (void)insertSegmentWithImage:(NSString *)image atIndex:(NSUInteger)index;
55 - (void)removeSegmentAtIndex:(NSUInteger)index;
56 - (void)removeAllSegments;
58 - (void)setTitle:(NSString *)title forSegmentAtIndex:(NSUInteger)index;
59 - (NSString *)titleForSegmentAtIndex:(NSUInteger)index;
61 - (void)setImage:(NSString *)image forSegmentAtIndex:(NSUInteger)index;
62 - (UIImage *)imageForSegmentAtIndex:(NSUInteger)index;
64 @property (nonatomic) NSMutableArray *segments;
65 @property (nonatomic) UIImage *normalImageLeft;
66 @property (nonatomic) UIImage *normalImageMiddle;
67 @property (nonatomic) UIImage *normalImageRight;
68 @property (nonatomic) UIImage *selectedImageLeft;
69 @property (nonatomic) UIImage *selectedImageMiddle;
70 @property (nonatomic) UIImage *selectedImageRight;
71 @property (nonatomic, readonly) NSUInteger numberOfSegments;
72 @property (nonatomic, getter=isMomentary) BOOL momentary;
76 @property (nonatomic, readwrite) NSInteger selectedSegmentIndex;
78 -(void)initializeImages;