-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIScrollView+YSPanel.h
More file actions
32 lines (23 loc) · 868 Bytes
/
UIScrollView+YSPanel.h
File metadata and controls
32 lines (23 loc) · 868 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
//
// UIScrollView+YSPanel.h
// SampleProject
//
// Created by Federico Erostarbe on 04/09/14.
// Copyright (c) 2014 Federico Erostarbe. All rights reserved.
//
#import <UIKit/UIKit.h>
@class YSPanelView;
typedef void (^DefaultBlock)(CGPoint location, CGFloat percent);
typedef void (^TextViewBlock)(CGPoint location, NSInteger line);
typedef void (^TableViewBlock)(CGPoint location, NSIndexPath *indexPath);
@interface UIScrollView (YSPanel)
@property (nonatomic, strong) YSPanelView *panelView;
- (void) addDefaultPanelWithBlock:(DefaultBlock)block;
- (void) addTextViewPanelWithBlock:(TextViewBlock)block;
- (void) addTableViewPanelWithBlock:(TableViewBlock)block;
@end
@interface YSPanelView : UIView
@property (nonatomic, strong) UIView *customView;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, assign) BOOL centered;
@end