ScreenShotBack

by zhengwenming

zhengwenming /ScreenShotBack

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

442 Stars 94 Forks Last release: Not found 37 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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.