Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image and label not centered + blur turns black #12

Open
maa-x opened this issue Oct 16, 2015 · 6 comments
Open

Image and label not centered + blur turns black #12

maa-x opened this issue Oct 16, 2015 · 6 comments

Comments

@maa-x
Copy link

maa-x commented Oct 16, 2015

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

@matthewbordas
Copy link

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

@cjazz
Copy link

cjazz commented Mar 14, 2016

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.

@Vinodh-G
Copy link
Owner

Vinodh-G commented Apr 9, 2016

@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
Copy link
Owner

Vinodh-G commented Apr 9, 2016

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

@billionbucks
Copy link

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

@hengchengfei
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants