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

现在的情况是每个页面都要设置alpha值,能设置默认不透明吗? #4

Open
libercata opened this issue Apr 4, 2017 · 1 comment

Comments

@libercata
Copy link

libercata commented Apr 4, 2017

-(NSString *)navBarBgAlpha{
return objc_getAssociatedObject(self, CloudoxKey) ? : @"1.0";
}

加了段这个,似乎是可行的。
只需要在透明度切换的两个vc中设置navBarBgAlpha值即可
若不透明的vc不设置alpha值,会在vc已经显示完毕后 navbar才恢复不透明。

@Cloudox
Copy link
Owner

Cloudox commented Apr 5, 2017

我也是想的这个做法,确实会在不设置alpha的时候,从透明导航栏进入不透明导航栏界面时出现迟滞,想想还有没有别的办法

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