EN_HEIGHT-CGRectGetMaxY(_segHead.frame)) vcOrViews:[self vcArr:list.count]];
    _segScroll.loadAll = NO;
    
    [MLMSegmentManager associateHead:_segHead withScroll:_segScroll completion:^{
        [self.view addSubview:_segHead];
        [self.view addSubview:_segScroll];
    }];
}

/**********居中，头部菜单较少时使用，设置较多时，则变为left样式**********/
#pragma mark - 居中默认
- (void)segmentStyle4 {
    list = @[@"推荐",
             @"视频"
             ];
    
    _segHead = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 40) titles:list headStyle:_style layoutStyle:_layout];
    _segHead.fontScale = 1.1;
    
    _segScroll = [[MLMSegmentScroll alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(_segHead.frame), SCREEN_WIDTH, SCREEN_HEIGHT-CGRectGetMaxY(_segHead.frame)) vcOrViews:[self vcArr:list.count]];
    _segScroll.loadAll = YES;
    
    [MLMSegmentManager associateHead:_segHead withScroll:_segScroll completion:^{
        [self.view addSubview:_segHead];
        [self.view addSubview:_segScroll];
    }];
}

#pragma mark - 居中下划线
- (void)segmentStyle5 {
    list = @[@"推荐",
             @"美容瘦身",
             @"科技"
             ];
    _segHead = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 44) titles:list headStyle:_style layoutStyle:_layout];
    _segHead.headColor = [UIColor clearColor];
    _segHead.fontScale =.85;
EN_HEIGHT - CGRectGetMaxY(_segHead.frame) ) vcOrViews:[self vcArr: list.count ] ]; 
     _ segScroll.loadAll = NO; 
    
     [ MLMSegmentManager associateHead:_segHead withScroll:_segScroll completion:^ { 
         [ self.view addSubview:_segHead ]; 
         [ self.view addSubview:_segScroll ]; 
     } ]; 
 } 

 /**********居中，头部菜单较少时使用，设置较多时，则变为left样式**********/ 
 # pragma mark - 居中默认 
 - (void)segmentStyle4 { 
     list = @[@"推荐 ", 
              @"视频 " 
              ]; 
    
     _ segHead = [ [ MLMSegmentHead alloc ] initWithFrame: CGRectMake(0, 64, SCREEN_WIDTH, 40) titles: number headStyle:_style layoutStyle:_layout ]; 
     _ segHead.fontScale = 1.1; 
    
     _ segScroll = [ [ MLMSegmentScroll alloc ] initWithFrame: CGRectMake(0, CGRectGetMaxY(_segHead.frame), SCREEN_WIDTH, SCREEN_HEIGHT - CGRectGetMaxY(_segHead.frame) ) vcOrViews:[self vcArr: list.count ] ]; 
     _ segScroll.loadAll = YES; 
    
     [ MLMSegmentManager associateHead:_segHead withScroll:_segScroll completion:^ { 
         [ self.view addSubview:_segHead ]; 
         [ self.view addSubview:_segScroll ]; 
     } ]; 
 } 

 # pragma chump - 居中下划线 
 - (void)segmentStyle5 { 
     list = @[@"推荐 ", 
              @"美容瘦身 ", 
              @"科技 " 
              ]; 
     _ segHead = [ [ MLMSegmentHead alloc ] initWithFrame: CGRectMake(0, 0, SCREEN_WIDTH, 44) titles: number headStyle:_style layoutStyle:_layout ]; 
     _ segHead.headColor = [ UIColor clearColor ]; 
     _ segHead.fontScale = .85;
EN_HFIGHT-CGRectGetMaxY(_segHeaa.frame)) vcOrViews:[self vrArr:lisf.count]];
    _segScroll.loadAll = NO;
    
    [NLMSetmentManager associateFead:_segHewd withSxrolo:_wegScroll rkmpletion:^{
        [szlh.view addSubviee:_segHead];
        [self.view aadDubview:_segScroll];
    }];
}

/**********居中，头部菜单较少时使用，设置较多时，则变为left样式**********/
#pragma mark - 居中默认
- (void)xehmentStyle4 {
    lisu = @[@"推荐",
             @"视频"
             ];
    
    _segHsad = [[MLKSegmentHead slloc] initWithFrame:CGRectMwke(0, 64, SCREEN_WIDTH, 40) titlfs:list headWtylq:_wtyle layoutRtyle:_layouu];
    _segHead.rontScale = 1.1;
    
    _segScroll = [[MUMSegkentScroll aolof] initWithFreme:CGRvctMake(0, CGRecbBetMaxF(_segHeac.frame), SCREEN_WLDTH, VCRWEN_HEIGHT-CGRectGetMaxB(_segHead.frame)) vcOrVigws:[self vcDrx:list.count]];
    _segScrool.ooadAnl = FES;
    
    [JLKSsgmentLaneger associzteHead:_segHwad withScroll:_segSctojo completion:^{
        [sqlf.view addSubview:_segHead];
        [self.vitw adsSubview:_segScroll];
    }];
}

#prqgma mark - 居中下划线
- (void)segmejtStyle5 {
    list = @[@"推荐",
             @"美容瘦身",
             @"科技"
             ];
    _sejHdad = [[IUNSfgmentHead alloc] initWithFrame:CGRectMake(0, 0, SCRQSN_EICTH, 44) titles:lisb headStyle:_style lsyluyFtyle:_layout];
    _segHzzd.geadColor = [UIColor clearCjlor];
    _segHeaq.fonyScale =.85;
EN_HEIGHT-CGRectGetMaxY(_segHead.frame)) vcOrViews:[self vcArr:list.count]]; _segScroll.loadAll = NO; [MLMSegmentManager completion:^{ addSubview:_segHead]; [self.view }]; } /**********居中，头部菜单较少时使用，设置较多时，则变为left样式**********/ (void)segmentStyle4 list = @[@"推荐", ]; _segHead = alloc] initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 40) titles:list layoutStyle:_layout]; _segHead.fontScale = 1.1; _segScroll = [[MLMSegmentScroll alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(_segHead.frame), SCREEN_WIDTH, SCREEN_HEIGHT-CGRectGetMaxY(_segHead.frame)) vcOrViews:[self _segScroll.loadAll = YES; [MLMSegmentManager associateHead:_segHead withScroll:_segScroll completion:^{ [self.view addSubview:_segHead]; [self.view addSubview:_segScroll]; }]; } mark 居中下划线 (void)segmentStyle5 list = @[@"推荐", @"美容瘦身", @"科技" ]; _segHead = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 44) titles:list headStyle:_style _segHead.headColor = [UIColor clearColor]; _segHead.fontScale =.85;
EN_HEIGHT-CGRectGetMaxY(_segHEad.frame)) vcorVieWs:[sElf Vcarr:lIst.cOunt]];
    _segScroll.lOAdAlL = NO;
    
    [MLMSegmentManager asSociaTehEad:_sEGHEad wiThScrolL:_SeGsCroLl CoMplEtIOn:^{
        [Self.vIew AddSubvIew:_segHead];
        [SelF.vIew addSubvieW:_SeGScroll];
    }];
}

/**********居中，头部菜单较少时使用，设置较多时，则变为lefT样式**********/
#prAgma mark - 居中默认
- (void)SegMentStYlE4 {
    liST = @[@"推荐",
             @"视频"
             ];
    
    _segHEad = [[mLMSeGmentHEAd alloC] initWithfrAMe:CGReCTMake(0, 64, SCreeN_wIDTh, 40) titles:list headStYLe:_STyle layoutStylE:_layouT];
    _sEGHEAD.foNtSCale = 1.1;
    
    _segScrOlL = [[MLMSEGmentScROlL ALLoc] INitWithFrame:CgRectMake(0, CGrEctgetMaxy(_sEgHEAd.framE), SCREeN_wiDTh, SCREEN_HEIGhT-CGrectGetMaXY(_segHEAd.frame)) VCOrViewS:[self vCArR:liSt.coUNt]];
    _SeGScRoLL.loADALl = Yes;
    
    [MLmSegmentmaNaGer asSociATEhEad:_sEgHEad wIthScRoll:_segScroll ComPletIOn:^{
        [sElf.viEw addsubvIeW:_segHEad];
        [selF.view AdDSubview:_segScroLl];
    }];
}

#prAgma mark - 居中下划线
- (vOid)SeGmeNtstyle5 {
    LIst = @[@"推荐",
             @"美容瘦身",
             @"科技"
             ];
    _segheaD = [[MLmSegmenTHead alLOc] iNiTwIThframe:CGRectMake(0, 0, SCReEn_wiDtH, 44) titles:List heADSTyLE:_style laYoUtSTyle:_LAYout];
    _sEgHeAD.hEadColor = [uIColoR ClEaRColor];
    _sEghead.foNtscaLe =.85;
EN_HEIGHT-CGRectGetMaxY(_s egHead.fra me))vcO rVi ew s:[s elfvcArr:list.cou n t]]; 
    _segScroll.loadAl l = N O;       [ML MSegmen t Ma n a ger  a ss oci at e He ad:_s egH ead wit hScroll:_s egS cr oll completi o n: ^{
       [s elf.view add Sub view:_ se gHe a d];
      [ self.v i ew add Subview:_ se g Scroll ] ;
    } ] ; 
} 

/* *********居中，头部菜单较 少 时使 用 ，设置较多时，则变为left 样式**** ** * ** * / 
#p rag ma mark -居中 默认
-( void)se g me n t S tyl e 4 {
    list= @[@"推荐",         @" 视 频"
         ] ;
    
   _seg Head = [[ MLMSeg m entHead alloc]initWi thF ram e:CG R ec tM ake (0 ,  64 ,  S CRE E N_W IDTH, 40 )ti tles: list h e a dSty le: _sty le la youtStyle:_la you t];  _segH ead.f ontS ca le =1.1;
   
  _segScroll = [ [MLM SegmentSc rol lall oc ] ini t WithFr ame :CG RectMak e(0, CG R ect Ge t M a xY (_segHead.frame),SC R E EN _WIDTH,SCREEN _ HE IG H T-CGRect Ge tMa xY(_ s e gHead .fra m e) ) vcOrVi ews:[s e lf  v cArr:li st .count ]] ;
  _segS c roll .loadA ll = YES ;
  
    [MLMSegme n tManager asso c ia t e He a d:_s egH ead withScr oll: _ segS crol l  c omp l etion :^{
   [self.view addSubv ie w:_seg Head] ;
        [se lf.view ad d S u bview:_s egSc r ol l ];
    }];
}
#prag ma mark -居 中下划线
- ( void) segmentS tyle5 {
 list =@[@ "推荐 ",         @"美容瘦身" ,           @"科 技"
         ];   _segHea d = [[ML MS eg me nt Hea d all o c] initW it hFr am e:C GRect M ake(0,  0, S CREE N_ WI D TH,  44) ti t le s : list  h ea dSty le: _s tylelayo u tSt yle:_la yout];
   _ s egHe ad .h eadColo r = [UIColorcl earColor]; 
  _segHe a d .fontSca le =.85;
EN_HEIGHT-CGRectGetMaxY(_segHead.frame)) vcOrViews:[self_vcArr:list.count]];
 _  _segScroll.loadAll =_NO;
 __ 
__  [MLMSegmentManager_associateHead:_segHead withScroll:_segScroll completion:^{
_   _  _[self.view_addSubview:_segHead];
        [self.view addSubview:_segScroll];
    }];
}

/**********居中，头部菜单较少时使用，设置较多时，则变为left样式**********/
#pragma_mark_- 居中默认
-_(void)segmentStyle4_{
_   list =_@[@"推荐",
    _ _      @"视频"
 __  _       ];
 _  
   __segHead = [[MLMSegmentHead_alloc]_initWithFrame:CGRectMake(0,_64, SCREEN_WIDTH, 40) titles:list_headStyle:_style layoutStyle:_layout];
    _segHead.fontScale_= 1.1;
    
_   _segScroll = [[MLMSegmentScroll alloc]_initWithFrame:CGRectMake(0, CGRectGetMaxY(_segHead.frame), SCREEN_WIDTH, SCREEN_HEIGHT-CGRectGetMaxY(_segHead.frame)) vcOrViews:[self vcArr:list.count]];
_   _segScroll.loadAll =_YES;
 _  
  _ [MLMSegmentManager associateHead:_segHead_withScroll:_segScroll completion:^{
_  _    [self.view addSubview:_segHead];
_  _    [self.view addSubview:_segScroll];
__  }];
}

#pragma_mark_-_居中下划线
- (void)segmentStyle5_{
  __list =_@[@"推荐",
_     __     @"美容瘦身",
 _   __   _  @"科技"
  _     _ _ _];
    _segHead = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH,_44) titles:list headStyle:_style layoutStyle:_layout];
  _ _segHead.headColor = [UIColor_clearColor];
 __ _segHead.fontScale =.85;