//
//  CustomSegmentControl.h
//  DrivoMeter
//
//  Created by Triin Uudam on 4/8/12.
//  Copyright (c) 2012 Mobi Solutions OÜ. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CustomSegmentedControl : UISegmentedControl {
  
  UIColor *offColor;
  UIColor *onColor;
  
  BOOL hasSetSelectedIndexOnce;
}

-(id)initWithItems:(NSArray *)items offColor:(UIColor*)offcolor onColor:(UIColor*)oncolor;
-(void)setInitialMode;
-(void)setToggleHiliteColors;
- (void)updateSegments;

@end
