-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathScrollDragView.h
More file actions
26 lines (20 loc) · 786 Bytes
/
ScrollDragView.h
File metadata and controls
26 lines (20 loc) · 786 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
//
// ScrollDragView.h
// HorizontalScrollDrag
//
// Created by Simay on 16/4/28.
// Copyright © 2016年 Simay. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ScrollDragView : UIScrollView
@property (nonatomic, assign) CGSize itemSize;
@property (nonatomic, assign) UIEdgeInsets itemInsert;//上下左右margin
@property (nonatomic, assign) CGFloat spacingWidth; //间距大小
@property (nonatomic, assign,readonly) NSUInteger itemCount; //item数量
@property (nonatomic, assign) BOOL isHaveAddButton;
@property (nonatomic, strong ,readonly) UIButton *addItemButton;
//- (void)addImage:(UIImage *)image;
- (void)addItem:(UIView *)item;
//- (void)addImage:(UIImage *)image;
//- (void)insertImage:(UIImage *)image atIndex:(NSUInteger)index;
@end