quemb / QMBParallaxScrollViewController

Add a parallax top view to any UIScrollView (incl. UITableViews) - #Parallax #ScrollView #TableView #Header
http://quemb.github.io/QMBParallaxScrollViewController
MIT License
871 stars 121 forks source link

Overlapping bottom scroll view over part of top image view #2

Open apcorc opened 10 years ago

apcorc commented 10 years ago

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!

tonimoeckel commented 10 years ago

I think this should be easy. 2 solutions: (1) You can use the maxHeight property to set the max full screen size. (Its the height of the ParallaxView by default). (2) Or you can to set set the frame of the your tableview frame. I set it to origin {0,0} by default, but you can override it.

apcorc commented 10 years ago

I just had a change to try to implement this today and it doesn't seem to be working. I tried changing the frame of the table view but it had no affect. I also tried changing the frames of _foregroundScrollView and _foregroundView but it did not produce the desired effect.

I want it to look like this when not in full screen mode. To do this I modified KIImagePager and actually added that view to the top view.

img_1899

I'd rather have that be part of the bottom table view because now when I go full screen, it looks like this:

img_1900

I want that view to animate off the screen with the rest of the table. I think part of the problem is that the top view is actually on top of the bottom view so maybe what I'm trying to do just isn't possible.