DLCustomSlideView.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // DLCustomSlideView.h
  3. // DLSlideViewDemo
  4. //
  5. // Created by Dongle Su on 15-2-12.
  6. // Copyright (c) 2015年 dongle. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "DLSlideTabbarProtocol.h"
  10. #import "DLSlideView.h"
  11. #import "DLTabedSlideView.h"
  12. #import "DLCacheProtocol.h"
  13. @class DLCustomSlideView;
  14. @protocol DLCustomSlideViewDelegate <NSObject>
  15. - (NSInteger)numberOfTabsInDLCustomSlideView:(DLCustomSlideView *)sender;
  16. - (UIViewController *)DLCustomSlideView:(DLCustomSlideView *)sender controllerAt:(NSInteger)index;
  17. @optional
  18. - (void)DLCustomSlideView:(DLCustomSlideView *)sender didSelectedAt:(NSInteger)index;
  19. @end
  20. @interface DLCustomSlideView : UIView<DLSlideTabbarDelegate, DLSlideViewDelegate, DLSlideViewDataSource>
  21. @property(nonatomic, weak) UIViewController *baseViewController;
  22. @property(nonatomic, assign) NSInteger selectedIndex;
  23. // tabbar
  24. @property(nonatomic, strong) UIView<DLSlideTabbarProtocol> *tabbar;
  25. @property(nonatomic, assign) float tabbarBottomSpacing;
  26. // cache properties
  27. @property(nonatomic, strong) id<DLCacheProtocol> cache;
  28. // delegate
  29. @property(nonatomic, weak)IBOutlet id<DLCustomSlideViewDelegate>delegate;
  30. // init method. 初始分方法
  31. - (void)setup;
  32. @end