Comments (22)
Good find. This seems to be due to the tableView
's contentInset
not being changed while scrolling down.
I don't have a fix for this at this point.
from apparallaxheader.
I think I have a possible fix for this.
from apparallaxheader.
hello guys...
thank you for amazing work.. but any new about this problem??
from apparallaxheader.
Hello guys, is there any update on this issue?
from apparallaxheader.
+1
from apparallaxheader.
I've revisited this bug and sat down for a good couple of hours but I can't seem to find a good solution. It's a known bug without a clear workaround. Every "fix" creates another bug.
I've found a couple of blog posts and stack overflow posts that tries to fix this in other projects.
One is This blog post where a subclass of a uitableview repositions each table header view. May work for APParallaxHeader, but i don't think it's something that could be automatically integrated into the project. Someone please correct me if I'm wrong
The other fix is fixing the contentInset. I've already tried this for APParallaxHeader, and it breaks the scroll inertia and makes the parallax feel sluggish and buggy.
from apparallaxheader.
Has anyone made any progress on this?
from apparallaxheader.
It doesn't help when you guys leave +1 comment. It just annoys everyone who's watching the thread
from apparallaxheader.
Has anyone solved this or is there an ETA?
from apparallaxheader.
MobileMon: almost as annoying as the bug
from apparallaxheader.
Hi!
I solved this problem 1 year ago. Sorry, that I forgot to upload the code. Here it is.
#pragma mark - UITableView HackFix
-
(void)fixTableView
{
[self.theTableView setContentInset:UIEdgeInsetsMake(0, self.theTableView.contentInset.left, self.theTableView.contentInset.bottom, self.theTableView.contentInset.right)];if (self.interfaceOrientation == UIInterfaceOrientationPortrait || self.interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
{
[self.theTableView setFrame:CGRectMake(0, 20, [HelperFunctionForFloat screenShorterSizeValue],[HelperFunctionForFloat screenLongerSizeValue]-20)];
}if (self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft || self.interfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
[self.theTableView setFrame:CGRectMake(0, 20, [HelperFunctionForFloat screenLongerSizeValue], [HelperFunctionForFloat screenShorterSizeValue]-20)];
}
}
from apparallaxheader.
Mind sharing these as well? [HelperFunctionForFloat screenShorterSizeValue],[HelperFunctionForFloat screenLongerSizeValue]
from apparallaxheader.
Ok.
@implementation HelperFunctionForFloat
-
(float)screenShorterSizeValue
{
float x;if ([[UIScreen mainScreen] bounds].size.width > [[UIScreen mainScreen] bounds].size.height)
x = [[UIScreen mainScreen] bounds].size.height;
else x = [[UIScreen mainScreen] bounds].size.width;// NSLog(@"shorter %f",x);
return x;
}
-
(float)screenLongerSizeValue
{
float y;if ([[UIScreen mainScreen] bounds].size.width > [[UIScreen mainScreen] bounds].size.height)
y = [[UIScreen mainScreen] bounds].size.width;
else y = [[UIScreen mainScreen] bounds].size.height;// NSLog(@"longer %f",y);
return y;
}
from apparallaxheader.
Still not scrolling for me
from apparallaxheader.
This worked for me http://stackoverflow.com/questions/5466097/section-headers-in-uitableview-when-inset-of-tableview-is-changed
from apparallaxheader.
@robertofrontado it is working but there is a missing of smoothness in scrolling.
@Amnell is there any update on this bug..
is there anyone who fixed this bug??
from apparallaxheader.
Is there an update for this bug? I'm also experiencing the same problem.
from apparallaxheader.
Have you tried setting the tableView
type as grouped
? I haven't tried it myself though.
from apparallaxheader.
i need the header to stick to the top of the tableview
from apparallaxheader.
@Ronaldoh1 I believe that should fix the issue. Can you please try that?
from apparallaxheader.
@RishabhTayal Grouped wont give you a sticky header thou, and thats the main issue with this bug.
I have not been able to find a solution for this bug, and I'm very certain that it is not possible to solve it and maintain a natural deceleration/inertia.
from apparallaxheader.
the sticky header doesn't stay with group style
:(
from apparallaxheader.
Related Issues (20)
- UIView with an Image as a Subview breaks Parallax HOT 2
- iOS7: Parallax view is not visible when pushed from UISearchDisplayController HOT 1
- Remove Parallax from TableView HOT 1
- On first load the image appears halfway down until you first scroll (either up or down) from a callback. HOT 4
- iPhone 6 and iPhone 6 + Sizing HOT 7
- scrollToRow not working probably
- image does not resize when resizing view [solution included, please check in to master] HOT 2
- How to change the top view into full size after scroll down to some point? HOT 1
- Add Padding
- Can't set mask on header image
- Latest version not pushed to CocoaPods HOT 1
- Adding Labels to the Header
- Problem with UIScrollView
- when i use it with view,can i make the view bigger when i pull down? HOT 2
- how to add Parallax effect to first cell of table view Cell? HOT 2
- custom view from xib HOT 1
- Glitch in scrolling while using it with TableView sections. HOT 2
- How can i Add image on header image as like fb ?
- Error height when used with IQKeyboardManager
- iPad Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apparallaxheader.