//
//  YPReusableController.h
//  YPReusableController
//
//  Created by MichaelPPP on 15/12/28.
//  Copyright (c) 2015骞?tyiti. All rights reserved.
//  YPNavTabBarController 绗簩浠fí绌哄嚭涓?
#import <UIKit/UIKit.h>
#import "YPReusableControllerConst.h"

typedef void(^YPReusableControllerNormalBlock)(void);

@interface YPReusableController : UIViewController

/** 瀛愭帶鍒跺櫒 */
@property (nonatomic, strong) NSArray *subViewControllers;

/** 鏂囧瓧鍐呰竟璺?*/
@property (nonatomic, assign) CGFloat textInset;

/** 鏂囧瓧瀛椾綋 */
@property (nonatomic, strong) UIFont *textFont;

/** 鏂囧瓧鏅€氱姸鎬佷笅鐨勯鑹?*/
@property (nonatomic, strong) UIColor *textColor_normal;

/** 鏂囧瓧閫変腑鐘舵€佷笅鐨勯鑹?*/
@property (nonatomic, strong) UIColor *textColor_selected;

/** 绱㈠紩 */
@property (nonatomic, assign) NSUInteger currentIndex;

/** bar鐨勮儗鏅鑹? 榛樿whiteColor */
@property (nonatomic, strong) UIColor *bar_bgColor;

/** bar鐨勬粦鍔ㄥ唴瀹硅儗鏅鑹?榛樿whiteColor */
@property (nonatomic, strong) UIColor *bar_scrollViewBgColor;

/** 鍙充晶鍥剧墖(鏅€? */
@property (nonatomic, strong) UIImage *rightImage_normal;

/** 鍙充晶鍥剧墖(楂樹寒) */
@property (nonatomic, strong) UIImage *rightImage_highlight;

/** 宸︿晶鍥剧墖(鏅€? */
@property (nonatomic, strong) UIImage *leftImage_normal;

/** 鏄惁寮€鍚槾褰辨晥鏋?榛樿寮€鍚?*/
@property (nonatomic, assign) BOOL isOpenShadowEffect;

/** 鍙充晶鎸夐挳鐐瑰嚮鍥炶皟鏂规硶 */
- (void)setRightBtnTouchBlock:(YPReusableControllerNormalBlock)rightBtnTouchBlock;

/** 宸︿晶鎸夐挳鐐瑰嚮鍥炶皟鏂规硶 */
- (void)setLeftBtnTouchBlock:(YPReusableControllerNormalBlock)leftBtnTouchBlock;

- (instancetype)init UNAVAILABLE_ATTRIBUTE;
+ (instancetype)new UNAVAILABLE_ATTRIBUTE;

/** 鏋勯€犳柟娉?*/
- (instancetype)initWithParentViewController:(UIViewController *)parentViewController;

@end

@interface UIViewController(YPReusableControllerExtension)

@property (nonatomic, copy) NSString *yp_Title;

@property (nonatomic, strong, readonly) YPReusableController *reusableController;

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