quemb / QMBParallaxScrollViewController

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

using non uiimageview in topviewcontroller #22

Open kiddomk opened 10 years ago

kiddomk commented 10 years ago

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?