feat:set rotation as view's prop

This commit is contained in:
pengfei.zhou
2019-11-29 15:16:15 +08:00
parent 4e596642f2
commit 3a89571f42
7 changed files with 42 additions and 13 deletions

View File

@@ -109,7 +109,7 @@ - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
if (scrollView.contentOffset.y <= 0) {
[self.swipePullingDelegate setProgressRotation:-scrollView.contentOffset.y / self.headerView.height];
[self.swipePullingDelegate setProgressRotation:-scrollView.contentOffset.y / self.headerView.height * 2];
}
}