ios - Parallax view scrolling (Yahoo weather like) -


this not strictly programming question more "how accomplish this" question.

i curious (and working on app require this) how left-right parallax scrolling implemented. know mean check yahoo weather app (it's free - no worries there).

are using 1 view controller or separate controller each view shown there?
easiest way implement this? have found this topic here kinda explains bit when getting information servers? when views changed or @ startup of app?

any information how implement such scrolling appreciated.

it's simple actually:

  • subclass uiscrollview
  • add uiview *parallaxview; @property
  • add cgfloat parallaxfactor @property
  • override layoutsubviews
  • call super, , use self.scrolloffset*parallaxfactor position parallaxview

that's it!

i've made multifunctional uiscrollview subclass myself that's simple use, perfect case! on github: https://github.com/leonardpauli/lpparallaxscrollview

good luck!


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -