GithubHelp home page GithubHelp logo

Comments (22)

Amnell avatar Amnell commented on July 20, 2024

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.

timominous avatar timominous commented on July 20, 2024

I think I have a possible fix for this.

#5

from apparallaxheader.

forsan avatar forsan commented on July 20, 2024

hello guys...

thank you for amazing work.. but any new about this problem??

from apparallaxheader.

helguita avatar helguita commented on July 20, 2024

Hello guys, is there any update on this issue?

from apparallaxheader.

kimar avatar kimar commented on July 20, 2024

+1

from apparallaxheader.

Amnell avatar Amnell commented on July 20, 2024

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.

cerupcat avatar cerupcat commented on July 20, 2024

Has anyone made any progress on this?

from apparallaxheader.

MobileMon avatar MobileMon commented on July 20, 2024

It doesn't help when you guys leave +1 comment. It just annoys everyone who's watching the thread

from apparallaxheader.

lukeirvin avatar lukeirvin commented on July 20, 2024

Has anyone solved this or is there an ETA?

from apparallaxheader.

brucedaniel avatar brucedaniel commented on July 20, 2024

MobileMon: almost as annoying as the bug

from apparallaxheader.

UBBproject avatar UBBproject commented on July 20, 2024

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.

lukeirvin avatar lukeirvin commented on July 20, 2024

Mind sharing these as well? [HelperFunctionForFloat screenShorterSizeValue],[HelperFunctionForFloat screenLongerSizeValue]

from apparallaxheader.

UBBproject avatar UBBproject commented on July 20, 2024

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;

}

@EnD

from apparallaxheader.

lukeirvin avatar lukeirvin commented on July 20, 2024

Still not scrolling for me

from apparallaxheader.

robertofrontado avatar robertofrontado commented on July 20, 2024

This worked for me http://stackoverflow.com/questions/5466097/section-headers-in-uitableview-when-inset-of-tableview-is-changed

from apparallaxheader.

akshaypakanati avatar akshaypakanati commented on July 20, 2024

@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.

Ronaldoh1 avatar Ronaldoh1 commented on July 20, 2024

Is there an update for this bug? I'm also experiencing the same problem.

from apparallaxheader.

RishabhTayal avatar RishabhTayal commented on July 20, 2024

Have you tried setting the tableView type as grouped? I haven't tried it myself though.

from apparallaxheader.

Ronaldoh1 avatar Ronaldoh1 commented on July 20, 2024

i need the header to stick to the top of the tableview

from apparallaxheader.

RishabhTayal avatar RishabhTayal commented on July 20, 2024

@Ronaldoh1 I believe that should fix the issue. Can you please try that?

from apparallaxheader.

Amnell avatar Amnell commented on July 20, 2024

@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.

Ronaldoh1 avatar Ronaldoh1 commented on July 20, 2024

the sticky header doesn't stay with group style
:(

from apparallaxheader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.