MyLinearLayout icon indicating copy to clipboard operation
MyLinearLayout copied to clipboard

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

Open kchtin opened this issue 5 years ago • 1 comments

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

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

kchtin avatar Feb 15 '20 12:02 kchtin

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

youngsoft avatar Aug 04 '20 05:08 youngsoft