// // 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 #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 @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 dataSource; @property (nonatomic, weak) id 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