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

bug #47

Open
iumiaomiao opened this issue Mar 7, 2018 · 4 comments
Open

bug #47

iumiaomiao opened this issue Mar 7, 2018 · 4 comments

Comments

@iumiaomiao
Copy link

present一个navigationcontroller后,再dismiss后,原控制器被抽屉遮盖

@ChavezChen
Copy link
Owner

看demo的处理方式。。或者调用cw_present方法

@ChavezChen
Copy link
Owner

demo处理方式:leftVC 的viewDidAppear里这个[self.view.superview sendSubviewToBack:self.view];

@ddviper
Copy link

ddviper commented Mar 14, 2018

这个方法在vc dismiss的时候能看到主控制器view返回轨迹,感官上感觉不太好,而且在present的时候也能看到主控制view消失。使用cw_present无效一present,leftVC先消失然后再present nextVC,dismiss又回到主控制器了。请问下,还可以怎么优化?我的主控制器是Navi+VC没有TarBarVC。

@ChavezChen
Copy link
Owner

你看一下我demo里面leftVC 第一个present 就是直接present且是按照上面的做的,是正常的。你可以试试left抽屉的可视范围只有0.75宽,你可以把left里面的子视图的宽度设置成这么多,然后你把leftVC的背景色设置成透明就不会有看到leftVC放到下层的轨迹了。

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

3 participants