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

相对布局下, fetchLayoutSizeClass: 的一个visibility问题 #140

Open
kchtin opened this issue May 18, 2021 · 0 comments
Open

相对布局下, fetchLayoutSizeClass: 的一个visibility问题 #140

kchtin opened this issue May 18, 2021 · 0 comments

Comments

@kchtin
Copy link

kchtin commented May 18, 2021

         UIView *view = UIView.alloc.init;
        view.mySize = CGSizeMake(60, 44);
        
        view.visibility = MyVisibility_Invisible;
        
        UIView *viewSC = [view fetchLayoutSizeClass:(MySizeClass_Landscape)];
        viewSC.mySize = CGSizeMake(60, 44);
        viewSC.visibility = MyVisibility_Visible;

当切换为横屏时, view 依然处于MyVisibility_Invisible状态,并未更新到正确状态

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

1 participant