feat:step10
This commit is contained in:
parent
f78d2ad487
commit
d8a743f13f
@ -109,5 +109,6 @@ class ListPanel extends Panel {
|
|||||||
}
|
}
|
||||||
it.bgColor = Color.WHITE
|
it.bgColor = Color.WHITE
|
||||||
}).in(rootView)
|
}).in(rootView)
|
||||||
|
refreshView.bgColor = Color.YELLOW
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -102,6 +102,8 @@ class RefreshableDemo extends Panel {
|
|||||||
} as IVLayout)).apply({
|
} as IVLayout)).apply({
|
||||||
layoutConfig: layoutConfig().atmost(),
|
layoutConfig: layoutConfig().atmost(),
|
||||||
})
|
})
|
||||||
|
}).apply({
|
||||||
|
bgColor: Color.YELLOW
|
||||||
}).in(rootView)
|
}).in(rootView)
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -18,6 +18,9 @@ - (instancetype)initWithFrame:(CGRect)frame {
|
|||||||
self.showsVerticalScrollIndicator = NO;
|
self.showsVerticalScrollIndicator = NO;
|
||||||
self.alwaysBounceVertical = YES;
|
self.alwaysBounceVertical = YES;
|
||||||
self.delegate = self;
|
self.delegate = self;
|
||||||
|
if (@available(iOS 11, *)) {
|
||||||
|
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
@ -28,6 +31,9 @@ - (instancetype)init {
|
|||||||
self.showsVerticalScrollIndicator = NO;
|
self.showsVerticalScrollIndicator = NO;
|
||||||
self.alwaysBounceVertical = YES;
|
self.alwaysBounceVertical = YES;
|
||||||
self.delegate = self;
|
self.delegate = self;
|
||||||
|
if (@available(iOS 11, *)) {
|
||||||
|
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
@ -80,9 +86,10 @@ - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL
|
|||||||
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
|
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
|
||||||
if (scrollView.contentOffset.y <= 0) {
|
if (scrollView.contentOffset.y <= 0) {
|
||||||
[self.swipePullingDelegate setProgressRotation:-scrollView.contentOffset.y / self.headerView.height];
|
[self.swipePullingDelegate setProgressRotation:-scrollView.contentOffset.y / self.headerView.height];
|
||||||
self.bounces = YES;
|
//self.bounces = YES;
|
||||||
} else {
|
} else {
|
||||||
self.bounces = NO;
|
//self.bounces = NO;
|
||||||
|
//scrollView.contentOffset = CGPointMake(scrollView.contentOffset.x, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user