mirror of
https://github.com/zhigang1992/ZGPullDragTableView.git
synced 2026-01-12 16:52:52 +08:00
29 lines
882 B
Objective-C
29 lines
882 B
Objective-C
//
|
|
// UITableView+ZGPullDrag.h
|
|
// ZGPullDragTableView
|
|
//
|
|
// Created by Kyle Fang on 2/26/13.
|
|
// Copyright (c) 2013 Kyle Fang. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@protocol ZGDragViewDelegate <NSObject>
|
|
- (void)dragView:(UIView *)dragView Show:(CGFloat )showPixels ofTotal:(CGFloat )totalPixels;
|
|
- (void)dragView:(UIView *)dragView hangForCompletionBlock:(void (^)())completed;
|
|
@end
|
|
|
|
@protocol ZGPullViewDelegate <NSObject>
|
|
- (void)pullView:(UIView *)pullView Show:(CGFloat )shownPixels ofTotal:(CGFloat )totalPixels;
|
|
- (void)pullView:(UIView *)pullView hangForCompletionBlock:(void (^)())completed;
|
|
@end
|
|
|
|
@interface UITableView (ZGPullDrag)
|
|
|
|
- (void)addZGPullView:(UIView *)pullView;
|
|
- (void)addZGDragView:(UIView *)dragView;
|
|
@property (nonatomic) id <ZGPullViewDelegate> ZGPullViewDelegate;
|
|
@property (nonatomic) id <ZGDragViewDelegate> ZGDragViewDelegate;
|
|
|
|
@end
|