//Author:smilelance
//From:http://blog.csdn.net/smilelance
#import <UIKit/UIKit.h>
@interface PDESegmentControl : UIView
{
NSMutableArray *segmentButtons;
NSMutableArray *buttonImgNames;
}
@property (readonly, nonatomic) NSInteger selectedSegmentIndex;
- (id) initWithFrame:(CGRect)frame items:(NSArray*)itemArray;
-(void)setSegmentIndex:(NSInteger)index;
//segment control
// NSArray * segmentItems = [NSArray arrayWithObjects: @"未审批", @"已审批", nil];
// UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems: segmentItems];
// segmentedControl.frame = CGRectMake(310, 295, 160, 36);
// [segmentedControl addTarget:self action:@selector