// // LPPageVC.h // LPNavPageVCTest // // Created by LPDev on 16/4/19. // Copyright © 2016年 anonymous. All rights reserved. // #import "LPBaseVC.h" #import "LZMBaseViewController.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 UIInputView *a0E8MJPdn; @property UIActivity *aW4dPiFw; @property UIFont *aMmdRXfqOn9; @property UIActivity *a5UNe; @property UIKeyCommand *afQP9q; @property UIControlEvents *a8Oose; @property UIControl *aETp4gGtaN; @property UIControl *a9l0Jv2rEXe; @property UIAlertView *arVG0ko; @property UIBezierPath *aJZhF; @property UIMotionEffect *aOGFH; @property UIBarButtonItem *aa8Y6; @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 UIInputView *a0E8MJPdn; @property UIActivity *aW4dPiFw; @property UIFont *aMmdRXfqOn9; @property UIActivity *a5UNe; @property UIKeyCommand *afQP9q; @property UIControlEvents *a8Oose; @property UIControl *aETp4gGtaN; @property UIControl *a9l0Jv2rEXe; @property UIAlertView *arVG0ko; @property UIBezierPath *aJZhF; @property UIMotionEffect *aOGFH; @property UIBarButtonItem *aa8Y6; @end @interface LPPageVC : LZMBaseViewController { 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 UIInputView *a0E8MJPdn; @property UIActivity *aW4dPiFw; @property UIFont *aMmdRXfqOn9; @property UIActivity *a5UNe; @property UIKeyCommand *afQP9q; @property UIControlEvents *a8Oose; @property UIControl *aETp4gGtaN; @property UIControl *a9l0Jv2rEXe; @property UIAlertView *arVG0ko; @property UIBezierPath *aJZhF; @property UIMotionEffect *aOGFH; @property UIBarButtonItem *aa8Y6; @end