LibraryNavigationPanel.h 744 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // LibraryNavigationPanel.h
  3. //
  4. //
  5. // Created by Alexi on 3/11/14.
  6. // Copyright (c) 2014 Harman. All rights reserved.
  7. //
  8. #if kSupportLibraryPage
  9. #import <UIKit/UIKit.h>
  10. @class LibraryNavigationPanel;
  11. @protocol LibraryNavigationPanelDelegate <NSObject>
  12. - (void)onLibraryNavigationPanel:(LibraryNavigationPanel *)panel navigateTo:(NSInteger)index;
  13. @end
  14. @interface LibraryNavigationPanel : UIView
  15. {
  16. @protected
  17. __weak id<LibraryNavigationPanelDelegate> _delegate;
  18. NSMutableArray *_titles;
  19. UILabel *_title;
  20. UIPageControl *_pageView;
  21. }
  22. @property (nonatomic, weak) id<LibraryNavigationPanelDelegate> delegate;
  23. - (instancetype)initWith:(NSArray *)titles;
  24. - (void)select:(NSInteger)index;
  25. @end
  26. #endif