关于iOS端手机QQ右滑退出时Navigation的渐变效果如何实现?
巴扎黑
巴扎黑 2017-04-17 16:26:27
0
1
365

自定义了 navigation 时, 用右滑退出 navigation会有空白 而不是系统提供的渐变,而手机QQ的navigation 是自定义的 但是侧滑的时候不影响 效果。
具体实现操作如下:
1.打开手机QQ任意一个好友的详情
2.侧滑pop
3.观察Navigation的效果

需要帮我提供一个思路, 目前 正常的方式我全部试过,UIViewControllerAnimateTransition转场我也试过,依然没有实现需求

巴扎黑
巴扎黑

reply all (1)
洪涛

https://github.com/zys456465111/CustomPopAnimation/blob/master/CustomPopAnimation%2FPopAnimation.m
Option 1 should be possible, that is, UIViewControllerAnimateTransition + UIPanGestureRecognizer + UIPercentDrivenInteractiveTransition.

UIPanGestureRecognizer's handler can calculate the current progress through offset, and it should be enough to update the navigationbar's alpha according to the progress.

Hope it’s useful.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!