PSTCollectionViewController.h 782 B

123456789101112131415161718192021222324
  1. //
  2. // PSTCollectionViewController.h
  3. // PSPDFKit
  4. //
  5. // Copyright (c) 2012-2013 Peter Steinberger. All rights reserved.
  6. //
  7. #import "PSTCollectionViewCommon.h"
  8. @class PSTCollectionViewLayout, PSTCollectionViewController;
  9. // Simple controller-wrapper around PSTCollectionView.
  10. @interface PSTCollectionViewController : UIViewController <PSTCollectionViewDelegate, PSTCollectionViewDataSource>
  11. // Designated initializer.
  12. - (id)initWithCollectionViewLayout:(PSTCollectionViewLayout *)layout;
  13. // Internally used collection view. If not set, created during loadView.
  14. @property (nonatomic, strong) PSTCollectionView *collectionView;
  15. // Defaults to YES, and if YES, any selection is cleared in viewWillAppear:
  16. @property (nonatomic, assign) BOOL clearsSelectionOnViewWillAppear;
  17. @end