Git Product home page Git Product logo

qmbparallaxscrollviewcontroller's Introduction

QMBParallaxScrollView

  • Add a parallax top view to any UIScrollView
  • Inspired by apps like foursquare or path

Demo

Features

  • Supports any UIScrollView
  • Use any UIViewController for the top view
  • Rich delegation methods for:
    • Top view tap
    • Pan over boundary
    • Full size top view
    • Scroll states
  • Uses iOS 5 container views (Child View Controller)
  • Keep contol of your UIScrollView delegate
  • Works with Storyboards
  • Developed for iOS7 (but should by compatible to iOS 5 - but not tested)

More Parallax Views

qmbparallaxscrollviewcontroller's People

Contributors

dblock avatar markst avatar s424242 avatar tonimoeckel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qmbparallaxscrollviewcontroller's Issues

Don't forget to update the podspec

I just ran into an issue that was cause by me using an outdated version of your library. As the podspec file points to tag 0.1, it will not pick up your latest commits. I managed to work around this issue by pointing CocoaPods to the master branch:

pod 'QMBParallaxScrollViewController', :git => 'https://github.com/quemb/QMBParallaxScrollViewController.git'

But it certainly would helpful to be able to use the podspec file directly.

Remove header

I have a custom header with two buttons (the first one opens a left-side sliding menu and the other one refreshes the view). I'd like to remove the sliding header and also place the scrolling table underneath because both cover my custom header. Is that possible?

using non uiimageview in topviewcontroller

i'm using a UIView containing other 2 sub uiviews and pagecontrol. when i start scrolling down, the topview was not animated. because i guess the topviewcontroller.view was not uiimageview?

However when i set the main view as uiimageview with some image, it was scrolling properly.

Also, I found in the sample project, when you scroll top view to second image, then scrolling the bottomview, the top one was switch back to the first one.

I'm using interface builder with a nib file instead of storyboard. are there any ways i can add cutomized uiview onto the top view and keep the effects? do I need to take a snapshot of the whatever the state of the topview then pass it back to background view to make it work?

Scroll inertia slows down unnaturally when scrolling up back towards image.

Reproduction:

  1. Show an image as a top view controller.
  2. Display at least of a couple of screenfuls of content. Scroll to the bottom.
  3. Flick down to scroll up. Standard scrollview deceleration takes 2-3 seconds to bring the scrolling to a stop.
  4. Observe that deceleration is much stronger when the scrollview hits the image; scrolling stops much more abruptly, and usually doesn't reach the top of the image.

Cell recycling (UITableView or UICollectionView) are broken

I see you expand the UITableView to its full height, so all the cells will be rendered in one time!

That mean we cannot use this super cool effect if we have too many rows (especially with remote images inside) ;-(

Why you didn't use the Scroll of the bottom UITableView (or UICollectionView)?

Opaque Navigation Bar Support

Hey, I've been working with your library for a couple days now and I really like it so far, it's definitely one of the better ones out there. I have already made quite a few changes to it to fit my needs but I am struggling with getting it to work with an opaque UINavigationBar in the UINavigationController. Do you have any insight about supporting this or be able to point me in the right direction? It appears that when you use an opaque nav bar the "bottom" / "foreground" view becomes aware of it (as though it applies to the foreground view as well) and there is some strange animation that goes on if you try to hide the navigation bar when animating to full screen. If you know where I can look, I'd be happy to develop the functionality myself and submit a pull request.

Thanks!

How to remove Parallax Top View once added?

Is there a way to Remove the Top Parallax View once it is added?

In my case I open up a note record that might have an image or not. If it has the image I would like to add the Parallax View but if the next record does not how would I remove the current added Top Parallax View?

Thank you for a great control.

Made a lot of changes, want me to adapt for a pull request?

I made a lot of changes for using this with a client's app that had a mapview with tableview that slides up from the bottom:

  • allow the top view, the mapview in my case, to stay fullscreen with the bottom view above it (because resizing map view while panning scrollview looks bad, keeping it fixed size & recentering it while panning looks better)
  • allowed automatic setup from storyboard using custom segues to reference top & bottom view controllers, setting the top view controller as the delegate if it conforms to protocol
  • allowed setting height, max of bottom view instead of the top view
  • allowed setting a snap position, a threshold for snapping to this height or to max or min when panning stops
  • had problems with scrollview delegate methods, changed to have the bottom view controller just explicitly forward delegate calls to its parent view controller

I'll put what I have into a simple fork for now, but wondered if you'll be interested in taking these changes as pull requests? If so, I'll need to re-implement some of them to be based on your code as starting point rather than the experimental hack & rewrite I did.

But if some of those changes don't fit with your ideas, then I'd rather rename my fork to avoid confusion and let it live as a new cocoapod for my client's app, from which you or any of your users can back-port any of my work as desired.

Can I get your opinion?

Scroll Issue.

Is it possible to bring the scrollview back to the original position ,programmatically.
Thanks in advance.

CollectionView support

I would like to use a UICollectionViewController as a bottomController but it is getting its own scrollbar. Do you have any idea on how to fix that / can you provide an example with a collection view?

bildschirmfoto 2014-01-30 um 17 52 03

Overlapping bottom scroll view over part of top image view

I would love to be able to have the top cell in my table view (bottom scroll view) overlap the bottom of the photo. It is partially transparent and I'd like to be able to see it when the top view is not full screen. However I would like for it to animate full off-screen when transitioning to the full screen view. Do you know how I might accomplish this? I can develop myself (I have already attempted) and submit a pull request but I am stuck and I could use some guidance as to where to start.

Thanks!

scrollsToTop & scrollToRowAtIndex not working

Not sure what to do about this -- my bottom VC is a tableview. I've tried calling scrollToRowAtIndex from that view controller itself, as well as from its parent QMBParallaxVC. Neither responds.

Any suggestions? BTW, great work on this.

Resize foregroundScrollView frame.

When QMBParallaxScrollViewController's view frame changes the subviews do not update accordingly.

One solution is to update the foregroundScrollView's frame upon view frame observer change:

if ([keyPath isEqualToString:@"frame"]) [self.foregroundScrollView setFrame:(CGRect){{0,0},self.view.frame.size}];

or set the _foregroundScrollView's auto resizing mask

_foregroundScrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

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.