Need help with ScreenShotBack?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

zhengwenming
444 Stars 94 Forks 37 Commits 1 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

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,进群请修改群名片格式。(付费群,手机端可以加,电脑加不了。慎入!)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.