ios - Mixing UIScrollViews and UITableViews -


if @ featured tab of apple app store app on iphone 6, there unique ui layout can't figure out how replicate.

at top there navigationbar. below there uiscrollview animates through number of featured items. below appears uitableview number of custom programmed cells.

my first guess uiscrollview @ top added custom cell @ top of uitableview. if swipe uiscrollview moves objects below cell. can see vertical scroll indicator starts @ top of uiscrollview.

the part unique if swipe down, objects below uiscrollview move down uitableview , uiscrollview stays in place. means uiscrollview not custom cell @ top of uitableview.

i tried making work number of different ways can replicate this. know how can done?

you can use tableview header,the header scrollview

  • if scroll tableview up,just use tableview default behavior,the header scroll up.
  • if scroll down,use uiscrollviewdelegate calculate tableview header new frame,and adjust it.so remain @ top

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -