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

A是竖屏,B是横屏竖屏都可以。当A push B后,再横屏,再返回的时候,A的view上面还有一点B的view在上面 #27

Closed
amwujetuu opened this issue Sep 13, 2016 · 5 comments

Comments

@amwujetuu
Copy link

A是竖屏,B是横屏竖屏都可以。当A push B后,再横屏,再返回的时候,A的view上面还有一点B的view在上面没有pop完,过了0.2秒才会消失
aaa

@rickytan
Copy link
Owner

禁止转屏是如何设置的?我貌似无法重现

@amwujetuu
Copy link
Author

@rickytan 禁止转屏主要是加了两个类别设置的,如下gif所示,那个设置主要在UIViewController+Extension.m里面

@amwujetuu
Copy link
Author

amwujetuu commented Sep 14, 2016

@rickytan 禁止转屏主要是加了两个类别设置的,如下gif所示,那个设置主要在UIViewController+Extension.m里面,麻烦帮忙看看是怎么回事,我用系统的导航就不会这样.我是用的 initWithRootViewController。我的项目设置里面默认是4个方向都打勾了
aaa

@amwujetuu amwujetuu reopened this Sep 14, 2016
@rickytan
Copy link
Owner

应该是你的 extension 覆盖了本项目的行为,去掉试试看?

@amwujetuu
Copy link
Author

amwujetuu commented Sep 14, 2016

@rickytan 去掉后 我怎么设置横竖屏?求方法。
我刚刚去掉试了,就是在我自己的A->VC里添加下面2个方法后,会有效果,但pop后,A会变成横平

  • (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
    return YES;
    }
  • (UIInterfaceOrientationMask)supportedInterfaceOrientations
    {
    return UIInterfaceOrientationMaskPortrait;
    }

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

2 participants