44 lines
1.3 KiB
C
44 lines
1.3 KiB
C
|
|
//
|
||
|
|
// MTGridSelectConfig.h
|
||
|
|
// MTGridSelectDemo
|
||
|
|
//
|
||
|
|
// Created by mambaxie on 2019/1/19.
|
||
|
|
// Copyright © 2019年 tencent. All rights reserved.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import <UIKit/UIKit.h>
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
@interface MTGridSelectConfig : NSObject
|
||
|
|
|
||
|
|
/// default equal to the width of screen.
|
||
|
|
@property (nonatomic, assign) CGFloat contentWidth;
|
||
|
|
/// insets of grid select view, default is (15, 15, 15, 15).
|
||
|
|
@property (nonatomic, assign) UIEdgeInsets contentInset;
|
||
|
|
/// default is 10.0.
|
||
|
|
@property (nonatomic, assign) CGFloat rowSpacing;
|
||
|
|
/// default is 10.0.
|
||
|
|
@property (nonatomic, assign) CGFloat columnSpacing;
|
||
|
|
/// default is 3.
|
||
|
|
@property (nonatomic, assign) NSUInteger maxColumn;
|
||
|
|
/// default is nil.
|
||
|
|
@property (nonatomic, copy) NSArray <NSNumber *> *defaultSelectIndexs;
|
||
|
|
|
||
|
|
/// default is 0.3. height = width * ratio. 仅当itemHeght为0.0时才生效
|
||
|
|
@property (nonatomic, assign) CGFloat itemRatio;
|
||
|
|
/// default is 0.0. 固定高度可通过该值设置
|
||
|
|
@property (nonatomic, assign) CGFloat itemHeight;
|
||
|
|
|
||
|
|
/// defalut is CGSizeZero. 固定itemSize可通过该值设置
|
||
|
|
@property (nonatomic, assign) CGSize itemSize;
|
||
|
|
|
||
|
|
/// default is NO.
|
||
|
|
@property (nonatomic, assign) BOOL multiple;
|
||
|
|
|
||
|
|
/// default is 3. 当multiple 才生效
|
||
|
|
@property (nonatomic, assign) NSInteger maxSelecteCount;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_END
|