Code Monkey home page Code Monkey logo

screenshotback's Introduction

ScreenShotBack

截图手势返回,景深效果,类似斗鱼、天天快报、腾讯新闻等APP的手势返回。对于每个VC都可以关闭或者打开手势返回,一个属性搞定。

    yourVC.enablePanGesture =  YES;(打开返回手势)默认为YES
    yourVC.enablePanGesture =   NO; (关闭返回手势)
    
    
     @interface BaseViewController : UIViewController
     @property (nonatomic, assign) BOOL enablePanGesture;//是否支持拖动pop手势,默认yes,支持手势

     @end
     
     
     @implementation BaseNavigationController

    这里可以改变触发的距离值
    // 打开边界多少距离才触发pop
    #define DISTANCE_TO_POP 80

注 :隐藏的导航栏的返回效果自己看GIF,6666666.

image

欢迎加入iOS技术支持群479259423,进群请修改群名片格式。(付费群,手机端可以加,电脑加不了。慎入!)

screenshotback's People

Contributors

zhengwenming 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.