//
//  YQYPiecewiseView.h
//  YQYPiecewiseDemo
//
//  Created by dongguoju on 16/3/10.
//  Copyright (c) 2016�?yangqiyao. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef enum{
    PiecewiseInterfaceTypeMobileLin = 1,
    PiecewiseInterfaceTypeBackgroundChange,
    PiecewiseInterfaceTypeCustomImage
}PiecewiseInterfaceType;

@class YQYPiecewiseView;
@protocol YQYPiecewiseViewDelegate <NSObject>

/**
 *  按钮点击事件
 */
- (void)piecewiseView:(YQYPiecewiseView *)piecewiseView index:(NSInteger)index;

@end
@interface YQYPiecewiseView : UIView

/**
 *  按钮标题
 */
@property(nonatomic,strong)NSArray *titleArray;

/**
 *  选中状态背景颜�? */
@property(nonatomic,strong)UIColor *backgroundSeletedColor;

/**
 *  默认状态背景颜�? */
@property(nonatomic,strong)UIColor *backgroundNormalColor;

/**
 *  下划线的颜色
 */
@property(nonatomic,strong)UIColor *linColor;

/**
 *  文字大小
 */
@property(nonatomic,strong)UIFont *textFont;

/**
 *  文字默认状态颜�? */
@property(nonatomic,strong)UIColor *textNormalColor;

/**
 *  文字选中状态颜�? */
@property(nonatomic,strong)UIColor *textSeletedColor;

/**
 *  显示类型
 */
@property (nonatomic, assign) PiecewiseInterfaceType type;

@property(assign, nonatomic) id<YQYPiecewiseViewDelegate> delegate;


/**
 *  加载标题显示的方�? */
- (void)loadTitleArray:(NSArray *)titleArray;

/**
 *  加载自定义图片的方法,如果不需要选中显示图片传nil。自定义按钮显示的数量和顺序是根据传入的图片名称数组的顺序和数量来显示的
 */
- (void)loadNormalImage:(NSArray *)normalImages seletedImage:(NSArray *)seletedImage;
@end
// 版权属于原作�?// http://code4app.com (cn) http://code4app.net (en)
// 发布代码于最专业的源码分享网�? Code4App.com