You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
0 B

//
// MCPageView.h
// QQFoundation
//
// Created by qinmuqiao on 2018/6/10.
// Copyright © 2018年 慕纯. All rights reserved.
//
#import <UIKit/UIKit.h>
@class MCPageView;
@protocol MCPageViewDelegate <NSObject>
- (void)MCPageView:(MCPageView *)MCPageView didSelectIndex:(NSInteger)Index;
@end
@interface MCPageView : UIView
@property (nonatomic , assign) id<MCPageViewDelegate> delegate;
/**
[UIFont systemFontOfSize:14]
*/
@property (nonatomic , strong) UIFont * defaultTitleFont;
/**
[UIFont systemFontOfSize:14]
*/
@property (nonatomic , strong) UIFont * selectTitleFont;
/**
*/
@property (nonatomic ,strong) UIColor * lastItemBackgroundColor;
/**
*/
@property (nonatomic , strong) UIColor * defaultTitleColor;
/**
*/
@property (nonatomic , strong) UIColor * selectTitleColor;
/**
60
*/
@property (nonatomic , assign) CGFloat titleButtonWidth;
/**
item下 线
*/
@property (nonatomic , strong) UIColor * lineColor;
/**
item下 线item宽度的比例01 0.5
*/
@property (nonatomic , assign) CGFloat lineWitdhScale;
/**
yes
*/
@property (nonatomic , assign) BOOL canSlide;
/**
item个数相同
0 0
@param badgeArray
*/
- (void)setItemBadgeWithArray:(NSArray *)badgeArray;
/**
item的角标
0 0
@param index item下标 0
@param badge
*/
- (void)setBadgeWithIndex:(NSInteger)index badge:(NSInteger)badge;
/**
iem
@param index item下标
*/
- (void)selectIndex:(NSInteger)index;
/**
@param frame frame
@param titles titleS数组
@param controllers jiemian数组
@return
*/
- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titles controllers:(NSArray *)controllers;
@property (nonatomic , strong) UIScrollView * titleScroll;
@property (nonatomic , strong) UICollectionView * contentCollection;
@end
@interface MCItem : UIButton
@property (nonatomic,strong) UILabel *badgeLb;
/**
0 , 0 , 999 999+
*/
@property (nonatomic,assign) NSInteger badge;
@end