Latest 0.0.8
Homepage https://github.com/2915445331/CorossSlideBar
License MIT
Platforms ios , requires ARC
Frameworks UIKit
Authors

A customizable horizontal slider.
The main documentation for this project is "CrossSlideBar" You can download this file for the sliding title effect.

integration method

Drag and drop CrossSlideBarr under CrossSlideBarMain into the project.
Add a header file # import "slideButtonCollectionView. h".

CocoaPods integration

pod search CrossSlideBar
#import <slideButtonCollectionView.h>

Main code examples

@property(nonatomic,strong)slideButtonCollectionView * slideButtonV;

-(slideButtonCollectionView *)slideButtonV{
  if (!_slideButtonV) {
    _slideButtonV = [[slideButtonCollectionView alloc]initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.width, 30)];
    _slideButtonV.titleArr = @[@"牙尚",@"童话",@"孕记",@"牙圈",@"人物",@"专题"];
    _slideButtonV.textColor = [UIColor blackColor];
    _slideButtonV.textSeltedColor = [UIColor redColor];
    _slideButtonV.bottomLinSeltedColor = [UIColor redColor];
    _slideButtonV.ClickTitleReturn = ^(NSString *titleIndex) {
        NSLog(@"%@",titleIndex);
      };
  }
  return _slideButtonV;
}

viewDidLoad

[self.view addSubview:self.slideButtonV];

Latest podspec

{
    "name": "CrossSlideBar",
    "version": "0.0.8",
    "summary": "A customizable horizontal slider.(u4e00u4e2au53efu81eau5b9au4e49u7684u6c34u5e73u6ed1u5757u3002)",
    "description": "The main documentation for this project is "CrossSlideBar" You can download this file for the sliding title effect.",
    "homepage": "https://github.com/2915445331/CorossSlideBar",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u6d41u5e74": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/2915445331/CorossSlideBar.git",
        "tag": "0.0.8"
    },
    "source_files": "CorossSlideBarMain/CrossSlideBar/**/*",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This