GithubHelp home page GithubHelp logo

Comments (7)

tomekc avatar tomekc commented on August 21, 2024 1

It looks like initial bounds of TableView are same as designed in IB. After re-layout numbers become correct. I used something like that in VC:

- (void)viewWillLayoutSubviews {
    [super viewWillLayoutSubviews];
    CGRect rect = self.tview.parallaxView.frame;
    rect.size.width = self.view.frame.size.width;
    self.tview.parallaxView.frame = rect;
}

However, the problem I found on iOS8 is that parallax header height is increased by height of navigation bar and status bar (+64 pts).

from apparallaxheader.

cerupcat avatar cerupcat commented on August 21, 2024

Have you figured out any fixes for this?

from apparallaxheader.

Jeehut avatar Jeehut commented on August 21, 2024

I'm having the same issue @tomekc with the navigation and status bar. Couldn't figure out a fix yet.
Can anyone help?

from apparallaxheader.

markst avatar markst commented on August 21, 2024

APParallaxView *parallaxView = [[APParallaxView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, height)];

could do with being:

APParallaxView *parallaxView = [[APParallaxView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([UIScreen mainScreen].bounds), height)];

or creating layout constraints to be same width as superview. right now it seems as if the auto generated constraints are by width rather that leading & trailing constraints to the superview.

from apparallaxheader.

markst avatar markst commented on August 21, 2024

or:
[parallaxView setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];
before adding: [self addSubview:parallaxView]

from apparallaxheader.

alexanderlipsett avatar alexanderlipsett commented on August 21, 2024

Having the same issue with an iPhone 6 on iOS 8. Tried @markst 's suggestions but I'm still seeing the issue. Anyone figured out a fix? Alternatively, anyone know of a good alternative library?

from apparallaxheader.

ofawx avatar ofawx commented on August 21, 2024

Was also having problems with the navigation and status bar in iOS7+, just found a workaround by making the bottom of the navigation bar the top of the view, by placing the following in the View Controller:

ObjC:

self.edgesForExtendedLayout = UIRectEdgeNone;

Swift:

self.edgesForExtendedLayout = UIRectEdge.None

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.