Skip to content

Tiger6688/WHUSliderView

 
 

Repository files navigation

####项目中常用到的带标签的滚动视图

  1. 支持IOS6+
  2. 支持xib
  3. 支持屏幕旋转
  4. 用法简单:
    WHUSliderView* hv=[[WHUSliderView alloc] initWithFrmae];
    hv.translatesAutoresizingMaskIntoConstraints=NO;
    [self.view addSubview:hv];
    NSDictionary* viewDic=NSDictionaryOfVariableBindings(hv);
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[hv]|" options:0 metrics:nil views:viewDic]];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[hv]|" options:0 metrics:nil views:viewDic]];
    hv.controllerArray=@[vc1,vc2,vc3,vc4,vc5,vc6]; //UIViewController 数组.
    hv.selectedColor=[UIColor redColor];
    [hv constructUI];

image

About

带标签的滑动切换视图

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%