Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

右侧滑出问题 #35

Open
ghost opened this issue Feb 8, 2018 · 2 comments
Open

右侧滑出问题 #35

ghost opened this issue Feb 8, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2018

楼主你好!请问我用右侧划出的时候[self cw_presentViewController:vc]present到下个界面后,dismiss不能回到侧滑的那个界面而是直接回到未侧滑之前的那个界面。而我使用[self presentViewController:vc animated:YES completion:nil];这种方式present,dismiss倒是可以回到侧滑的那个界面,但是此时这个侧滑又有问题。(阴影部分出错)希望您可以回到我一下!

@ChavezChen
Copy link
Owner

你看先用[self cw_presentViewController:vc] 这个方式能不能满足需求。。还有一个方法能设置抽屉收起的时间的效果可以稍微调整一点。。就是还是会回到未侧滑的界面。看行不行。如果一定要保留在当前界面,我再想想办法。不过等下我要准备东西坐车回家过年了。可能一定时间才能看这个情况哦。

@ghost
Copy link
Author

ghost commented Feb 8, 2018

谢谢你,楼主。我再想想办法。因为我的需求是侧滑过后present(push)新界面做选择后还需要再回到侧滑的那个界面,你现在[self cw_presentViewController:vc]是直接回到未侧滑的界面。我看了你的源代码,[self cw_presentViewController:vc]里面实现方法你是先[self dismissViewControllerAnimated:YES completion:nil]了再presentViewController的。我把这句代码删除后发现调用[self cw_presentViewController:vc]是直接在原来的keyWindow.rootViewController上进行presentViewController的。。。您先回家吧,祝你新年快乐,大吉大利!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant