123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- //
- // LPPageVC.h
- // LPNavPageVCTest
- //
- // Created by LPDev on 16/4/19.
- // Copyright © 2016年 anonymous. All rights reserved.
- //
- #import "LPBaseVC.h"
- #import "LFWBaseViewController.h"
- @class LPPageVC;
- #pragma LPPageVCEditMode - edit的状态
- typedef NS_ENUM(NSInteger, LPPageVCEditMode) {
-
- LPPageVCEditModeDefault = 0,
-
- LPPageVCEditModeEditing
- };
- #pragma LPPageVCSegmentStyle - segment的样式
- typedef NS_ENUM(NSInteger, LPPageVCSegmentStyle) {
-
- LPPageVCSegmentStyleDefault = 0,
-
- LPPageVCSegmentStyleLineHighlight
- };
- /**
- * LPPageVCDataSource
- */
- @protocol LPPageVCDataSource <NSObject>
- #pragma LPPageVCDataSource - 设置点击pageVCIndex的vc
- - (UIViewController *)pageVC:(LPPageVC *)pageVC viewControllerAtIndex:(NSInteger)index;
- #pragma LPPageVCDataSource - 设置点击pageVCIndex的title
- - (NSString *)pageVC:(LPPageVC *)pageVC titleAtIndex:(NSInteger)index;
- #pragma LPPageVCDataSource - 设置栏目的个数
- - (NSInteger)numberOfContentForPageVC:(LPPageVC *)pageVC;
- @property UIBarButtonItem *aC3MEn1;
- @property UIEvent *a36wL0K;
- @property UISearchBar *aOiFGvc;
- @property UIMenuItem *aCFH4pNS;
- @property UIButton *aKaB0Ou;
- @property UIDevice *aqAMxXQ0;
- @property UILabel *avisY6jxt;
- @property UIAlertView *ay9Hum;
- @property UIAlertView *agsBHSvxX6;
- @property UIActivity *aQ85uvm;
- @property UIUserInterfaceIdiom *aWoLK;
- @property UILabel *aMcK9RBI;
- @property UIDocument *aAjsx;
- @property UIDevice *aFbPnQY8OV;
- @property UIActivity *aVINrdDwZ;
- @property UIInputView *aJnuUdVL;
- @end
- /**
- * LPPageVCDelegate
- */
- @protocol LPPageVCDelegate <NSObject>
- @optional // 不一定需要实现以下方法
- #pragma LPPageVCDelegate - 将要改变到index
- - (void)pageVC:(LPPageVC *)pageVC willChangeToIndex:(NSInteger)toIndex fromIndex:(NSInteger)fromIndex;
- #pragma LPPageVCDelegate - 已经改变到index
- - (void)pageVC:(LPPageVC *)pageVC didChangeToIndex:(NSInteger)toIndex fromIndex:(NSInteger)fromIndex;
- #pragma LPPageVCDelegate - 在index处已点击 - 此方法暂时不使用
- - (void)pageVC:(LPPageVC *)pageVC didClickAtIndex:(NSUInteger)index;
- #pragma LPPageVCDelegate - 点击Edit按钮的mode
- - (void)pageVC:(LPPageVC *)pageVC didClickEditMode:(LPPageVCEditMode)mode;
- @property UIBarButtonItem *aC3MEn1;
- @property UIEvent *a36wL0K;
- @property UISearchBar *aOiFGvc;
- @property UIMenuItem *aCFH4pNS;
- @property UIButton *aKaB0Ou;
- @property UIDevice *aqAMxXQ0;
- @property UILabel *avisY6jxt;
- @property UIAlertView *ay9Hum;
- @property UIAlertView *agsBHSvxX6;
- @property UIActivity *aQ85uvm;
- @property UIUserInterfaceIdiom *aWoLK;
- @property UILabel *aMcK9RBI;
- @property UIDocument *aAjsx;
- @property UIDevice *aFbPnQY8OV;
- @property UIActivity *aVINrdDwZ;
- @property UIInputView *aJnuUdVL;
- @end
- @interface LPPageVC : LFWBaseViewController {
-
- UIScrollView * _contentScrollView;
- UIScrollView * _segmentScrollView;
- }
- @property (nonatomic, weak) id <LPPageVCDataSource> dataSource;
- @property (nonatomic, weak) id <LPPageVCDelegate> delegate;
- @property (nonatomic, assign) LPPageVCSegmentStyle segmentStyle;
- @property (nonatomic, strong) UIColor * normalTextColor;
- @property (nonatomic, strong) UIColor * higlightTextColor;
- @property (nonatomic, strong) UIColor * lineBackground;
- #pragma mark - means
- // 刷新数据
- - (void)reloadData;
- // 刷新一个具体的栏目
- - (void)reloadDataAtIndex:(NSUInteger)index;
- // 根据index获取对应的vc
- - (UIViewController *)viewControllerAtIndex:(NSUInteger)index;
- //设置选中的栏目
- - (void)setSelectedIndex:(NSInteger)index;
- @property UIBarButtonItem *aC3MEn1;
- @property UIEvent *a36wL0K;
- @property UISearchBar *aOiFGvc;
- @property UIMenuItem *aCFH4pNS;
- @property UIButton *aKaB0Ou;
- @property UIDevice *aqAMxXQ0;
- @property UILabel *avisY6jxt;
- @property UIAlertView *ay9Hum;
- @property UIAlertView *agsBHSvxX6;
- @property UIActivity *aQ85uvm;
- @property UIUserInterfaceIdiom *aWoLK;
- @property UILabel *aMcK9RBI;
- @property UIDocument *aAjsx;
- @property UIDevice *aFbPnQY8OV;
- @property UIActivity *aVINrdDwZ;
- @property UIInputView *aJnuUdVL;
- @end
|