From 617a234ab8d444475e94af10e1d0d1fbbf85b356 Mon Sep 17 00:00:00 2001 From: LijunSong Date: Mon, 17 Jun 2024 16:20:51 +0800 Subject: [PATCH] Update ParallaxHeaderView.m --- TouTiao/ParallaxHeaderView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TouTiao/ParallaxHeaderView.m b/TouTiao/ParallaxHeaderView.m index 0775286..b97fcb1 100755 --- a/TouTiao/ParallaxHeaderView.m +++ b/TouTiao/ParallaxHeaderView.m @@ -24,6 +24,7 @@ @interface ParallaxHeaderView () static CGFloat kParallaxDeltaFactor = 0.5f; static CGFloat kMaxTitleAlphaOffset = 100.0f; static CGFloat kLabelPaddingDist = 8.0f; +static CGFloat kLabelPaddingDist1 = 7.0f; @implementation ParallaxHeaderView @@ -68,6 +69,7 @@ - (void)layoutHeaderViewForScrollViewOffset:(CGPoint)offset else { CGFloat delta = 0.0f; + CGFloat delta2 = 0.1f; CGRect rect = kDefaultHeaderFrame; delta = fabs(MIN(0.0f, offset.y)); rect.origin.y -= delta;