ChavezChen / CWLateralSlide

One line of code to integrate 0 coupling side drawer!一行代码集成0耦合侧滑抽屉!
MIT License
1.28k stars 201 forks source link

右侧滑出问题 #35

Open ghost opened 6 years ago

ghost commented 6 years ago

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

ChavezChen commented 6 years ago

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

ghost commented 6 years ago

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