Giter Site home page Giter Site logo

tsscrollbtnview's Introduction

TSScrollBtnView

a slide view used to give you a more button list #####1.what is the TSScrollBtnView 这是一个顶部导航工具栏,这个工具栏可以实现滚动和对界面的翻页控制
This is a top navigation tools,we can use the tools to Turn the page
#####2.how to use it 如何使用它 ######init 初始化

+ (instancetype)scrollBtnViewWithnameArray:(NSArray *)nameArray;

######config your scrollView 配置滚动视图

NSArray * nameArray=@[@"001",@"002",@"003",@"004",@"005",@"006",@"007",@"008",@"009",@"010"];
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
self.scrollBtnView.pageNow=(scrollView.contentOffset.x+100)/([UIScreen mainScreen].bounds.size.width);
}

######use the delegate 使用代理方法

- (void)TSScrollBtnTouchWithIndex:(NSInteger)index
{
NSLog(@"%lu",index);
self.scrollView.contentOffset=CGPointMake([UIScreen mainScreen].bounds.size.width*index, 0);
}

- (void)TSScrollBtnMenuTouchGetView:(UIView *)menuView
{
[self.view addSubview:menuView];
}

warining: scrollview.pagingEnabled = YES; #####3.show you the effect effect #####4.how to contact me Dylan
blog:blog.dylancc.com

tsscrollbtnview's People

Contributors

tsnumidc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.