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;