Giter Site home page Giter Site logo

hynavbarhidden's Introduction

HYNavBarHidden分类


超简单好用的监听滚动,导航条渐隐的UI效果实现(时下最流行的UI效果之一)

使用过程中发现bug请先下载最新版,若bug依旧存在,请及时反馈,谢谢

详细使用方法,原理说明,欢迎大家关注笔者简书链接http://www.jianshu.com/p/ac237ebcd4fb.

#HYNavBarHidden的优点

1.文件少,代码简洁,不依赖其他第三方库

2.接口简单,使用方便

3.对源码无侵入性,导入分类即可使用,无需继承

HYNavBarHidden的常用属性方法


####属性 1.keyScrollView:当控制器中有多个ScrollView时,要指明是监听哪个ScrollView的滚动

2.导航条中item是否跟着渐隐,分别设置左边,中间,右边三个的BOOL值.默认为NO

/** 设置导航条上的标签是否需要跟随滚动变化透明度,默认不会跟随滚动变化透明度 */
@property (nonatomic,assign) BOOL  isLeftAlpha;
@property (nonatomic,assign) BOOL  isTitleAlpha;
@property (nonatomic,assign) BOOL  isRightAlpha;

3.scrolOffsetY:偏移大于等于scrolOffsetY时,导航条的alpha为1,完全不透明

###方法 (push或者pop控制器时,消除或回复导航条状态)

4.- (void)setInViewWillAppear 在控制器的viewWillAppear:方法中调用

5.- (void)setInViewWillDisappear 在控制器的viewWillDisappear:方法中调用

6.- (void)scrollControl 在scrollView代理方法中调用

#效果演示

1.gif

###最后在这给大家推荐一个极为好用的图片轮播器.是目前笔者发现封装得最好的图片轮播器之一.github源码链接https://github.com/codingZero/XRCarouselView

3.gif

hynavbarhidden's People

Contributors

helloyeah avatar

Watchers

 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.