//
//  LiuXSegmentView.h
//  LiuXSegment
//
//  Created by 鍒橀懌 on 16/3/18.
//  Copyright 漏 2016骞?liuxin. All rights reserved.
//


#import <UIKit/UIKit.h>

typedef void(^btnClickBlock)(NSInteger index);

@interface LiuXSegmentView : UIView
/**
 *  鏈€変腑鏃剁殑鏂囧瓧棰滆壊,榛樿榛戣壊
 */
@property (nonatomic,strong) UIColor *titleNomalColor;

/**
 *  閫変腑鏃剁殑鏂囧瓧棰滆壊,榛樿绾㈣壊
 */
@property (nonatomic,strong) UIColor *titleSelectColor;

/**
 *  瀛椾綋澶у皬锛岄粯璁?5
 */
@property (nonatomic,strong) UIFont  *titleFont;

/**
 *  榛樿閫変腑鐨刬ndex=1锛屽嵆绗竴涓? */
@property (nonatomic,assign) NSInteger defaultIndex;

/**
 *  鐐瑰嚮鍚庣殑block
 */
@property (nonatomic,copy)btnClickBlock block;

/**
 *  鍒濆鍖栨柟娉? *
 *  @param frame      frame
 *  @param titleArray 浼犲叆鏁扮粍
 *  @param block      鐐瑰嚮鍚庣殑鍥炶皟
 *
 *  @return
 */
-(instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titleArray clickBlick:(btnClickBlock)block;

@end
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com