The Wayback Machine - https://web.archive.org/web/20200913054302/https://github.com/zhengwenming/ScreenShotBack
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

ScreenShotBack

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

微信扫码关注文明的iOS开发公众号 或者微信搜索“iOS开发by文明”

image


    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
    //左边多少距离能接受手势(默认是全屏都可以接受手势)
    #define Left_Distance_Recieve_Gesture (([UIScreen mainScreen].bounds.size.width))

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

image

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

About

全屏返回,截图手势返回,景深效果,类似斗鱼、天天快报、腾讯新闻等APP的手势返回。

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.