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

关于 [view fetchLayoutSizeClass:MySizeClass_Landscape] 失效的一种情况 #123

Open
kchtin opened this issue Feb 15, 2020 · 1 comment

Comments

@kchtin
Copy link

kchtin commented Feb 15, 2020

当有竖屏通过 present 进入一个 横屏 vc, 在 loadview 中 设置 mylayout 布局视图.
当使用 [view fetchLayoutSizeClass:MySizeClass_Landscape] ,进行横屏适配, 发现进入 横屏vc 时候 适配没有起作用.

注意: 横屏方式为
// 是否旋转
-(BOOL)shouldAutorotate{
return YES
}
-(UIInterfaceOrientationMask)supportedInterfaceOrientations{
return right
}
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
return right
}

@youngsoft
Copy link
Owner

本问题已经在1.9.8版本中修复。老版本的横竖屏都是以设备的方向来进行适配的,新版本的优先用interface orientation方向来进行方向适配。

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