Comments (7)
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.
Have you figured out any fixes for this?
from apparallaxheader.
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.
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.
or:
[parallaxView setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];
before adding: [self addSubview:parallaxView]
from apparallaxheader.
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.
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)
- 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
- 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.