/**
* andTitleFont 文字字体
* andSeletedColor 选中颜色
* andNormalColor 正常颜色
* andLineColor 底部颜色
* andLineHeight 线条高度
*/
LgPageView *pageView =[[LgPageView alloc]initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame) - 30, 40.0f)
andTitleFont:[UIFont systemFontOfSize:18.0f]
andSeletedColor:[UIColor redColor]
andNormalColor:nil
andLineColor:nil
andLineHeight:3.0f];
[self.view addSubview:pageView];
/**
* 初始化 使用此方法
-(instancetype)initWithTitleView:(LgPageView *)titleView
andDelegateVc:(UIViewController<LgPageControlDelegate> *)delegateVc;
//是否可以清理之前的数据
@property(nonatomic,assign)BOOL canClearSubVcCache;
//最小清理数量
@property(nonatomic,assign)NSInteger minClearCount;
//当前页面
@property(nonatomic,assign,readonly)NSInteger lgCurrentPage;
/**
* 刷新界面使用
*/
-(void)reloadData;
//往后面追加
-(void)addPageNumber;
*/
LgPageControlViewController *pageVc = [[LgPageControlViewController alloc]initWithTitleView:pageView andDelegateVc:self];
pageVc.canClearSubVcCache = YES;
pageVc.minClearCount = 5;
_pageVc = pageVc;
pageVc.view.frame = CGRectMake(0,
CGRectGetMaxY(pageView.frame),
CGRectGetWidth(self.view.frame),
CGRectGetHeight(self.view.frame)- CGRectGetMaxY(pageView.frame));
-(NSInteger)lgPageControl:(LgPageControlViewController *)pageController;
-(UIViewController *)lgPageControl:(LgPageControlViewController *)pageController withIndex:(NSInteger)index;
-(NSArray *)lgPageTitlesWithLgPageView:(LgPageView *)pageView;