ParallaxTableViewHeader icon indicating copy to clipboard operation
ParallaxTableViewHeader copied to clipboard

Image and label not centered + blur turns black

Open maa-x opened this issue 10 years ago • 6 comments

Hi,

thanks for the great parallax effect, however I am having issues with it. Namely the image and label appear too far to the right until I scroll, when they are replaced correcly.

Also, the blur turns the image completely dark rather than simply blurring it.

I am using xcode 7 and swift 2.0

maa-x avatar Oct 16 '15 08:10 maa-x

I am having issues with the image appearing too far right until scrolling also

matthewbordas avatar Nov 22 '15 18:11 matthewbordas

Same issue here using Version 7.2.1, iOS 9.2. Thought it might have to do with my using autolayout, or needing to re-draw with setNeedsLayout, but no luck yet.

cjazz avatar Mar 14 '16 09:03 cjazz

@cjazz Use API layoutHeaderViewForScrollViewOffset: passing the current scroll offset instead od setNeedsLayout. and let me know if still it didn't help you.

Vinodh-G avatar Apr 09 '16 18:04 Vinodh-G

@MatthewAnthonyBordas Same Ditto call API layoutHeaderViewForScrollViewOffset: as soon as View is appeared this will solve your issue.

Vinodh-G avatar Apr 09 '16 18:04 Vinodh-G

hey man am having the same issue as mentioned above tried your solution still no luck

billionbucks avatar Jun 10 '16 05:06 billionbucks

   override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        (self.tableView.tableHeaderView as! ParallaxHeaderView).refreshBlurViewForNewImage()
    }

hengchengfei avatar Jan 11 '17 01:01 hengchengfei