UICollectionView and ScrollView inside Vertical Scroll View

How to scroll the whole window using UIScrollView at the top to display a gallery of images, and UICollectionView to display other elements? (See layout below)

I tried this structure, but only the collection view scrolls and scrollview remain at the top.

  • View
    • UIScrollView
    • UICollectionView

Which control should be used to group scrollview and collectionview in order to have vertical scrolling throughout the window (and view the collection to enlarge with its contents)?

[Layout] http://img835.imageshack.us/img835/3138/prototyperl.png

+5
source share
2 answers

UICollectionView UIView - .

UICollectionView ScrollView UICollectionView, , , , , ( ) - .

UICollectionViewDataSource:

-(UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
+2

UIScrollView

  • UIScrollView
    • UIView
    • UICollectionView
+1

All Articles