ParallaxTableViewHeader
ParallaxTableViewHeader copied to clipboard
Image and label not centered + blur turns black
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
I am having issues with the image appearing too far right until scrolling also
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 Use API layoutHeaderViewForScrollViewOffset: passing the current scroll offset instead od setNeedsLayout. and let me know if still it didn't help you.
@MatthewAnthonyBordas Same Ditto call API layoutHeaderViewForScrollViewOffset: as soon as View is appeared this will solve your issue.
hey man am having the same issue as mentioned above tried your solution still no luck
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
(self.tableView.tableHeaderView as! ParallaxHeaderView).refreshBlurViewForNewImage()
}