-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGGTimeLineView.h
More file actions
41 lines (32 loc) · 886 Bytes
/
Copy pathGGTimeLineView.h
File metadata and controls
41 lines (32 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// GGTimeLineView.h
// Taurus
//
// Created by 王刚 on 2018/12/11.
// Copyright © 2018年 LOVER. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GGTimeLineItem.h"
NS_ASSUME_NONNULL_BEGIN
@interface GGTimeLineView : UIView
@property (nonatomic, strong)NSMutableArray<GGTimeLineItem *> * dataArray;
@property (nonatomic, assign) float upperViewHeight; //上部分占高
@property (nonatomic, assign) float downViewHeight; //下部分占高
/**
* @brief 画背景图
*/
-(void)drawBgFramework;
/**
* @brief 数据入口
*/
-(void)setDataArray:(NSMutableArray<GGTimeLineItem *> *)dataArray;
/**
* @brief 单独添加数据入口
*/
-(void)addNewItem:(GGTimeLineItem *)item;
/**
* @brief 移除所有图层
*/
-(void)removeAllLayer;
@end
NS_ASSUME_NONNULL_END