// // TabControl.h // model // // Created by Drew on 2018/11/1. // Copyright © 2018年 Mine. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN IB_DESIGNABLE @protocol TabControlDelegate - (void) tabChange:(NSInteger) index; @end typedef NS_ENUM(NSInteger, TabControlState) { TabControlStateNormal, TabControlStateActive }; @interface TabControl : UIView @property (nonatomic, assign) NSInteger index; @property (nonatomic, retain) id delegate; @property (nonatomic, strong) IBInspectable UIColor* backgroungColor; @property (nonatomic, strong) IBInspectable UIColor* indicatorColor; @property (nonatomic, strong) IBInspectable UIColor* normalColor; @property (nonatomic, strong) IBInspectable UIColor* activeColor; @property (nonatomic, strong) IBInspectable NSString* tab1; @property (nonatomic, strong) IBInspectable NSString* tab2; - (void)setColor:(UIColor*) color forState:(TabControlState) state; @end NS_ASSUME_NONNULL_END