Skip to content

Commit

Permalink
Own init top view,Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
YDJ committed Jun 30, 2015
1 parent 48407e4 commit 7f02a08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file not shown.
10 changes: 9 additions & 1 deletion DJRefreshSample/DJRefreshSample/SampleViewController.m
Expand Up @@ -30,11 +30,19 @@ - (void)viewDidLoad {

_dataList=@[@"tableView",@"collectionView",@"WebView"];

SampleRefreshView *refreshView=[[SampleRefreshView alloc] initWithFrame:CGRectZero];
[refreshView didDraggingProgressCompletionBlock:^(DJRefreshView *refreshView, CGFloat progress, NSDictionary *info) {
// NSLog(@"拉动进度%.2f",progress);
}];


_refresh=[DJRefresh refreshWithScrollView:self.tableView];
_refresh.delegate=self;
_refresh.topEnabled=YES;
[_refresh registerClassForTopView:[SampleRefreshView class]];
_refresh.topRefreshView=refreshView;
// _refresh.autoRefreshTop=YES;

// [_refresh registerClassForTopView:[SampleRefreshView class]];



Expand Down

0 comments on commit 7f02a08

Please sign in to comment.