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

setBackgroundColor出bug了 #20

Open
LeeYZ opened this issue Sep 30, 2019 · 6 comments
Open

setBackgroundColor出bug了 #20

LeeYZ opened this issue Sep 30, 2019 · 6 comments

Comments

@LeeYZ
Copy link

LeeYZ commented Sep 30, 2019

这一句出问题了
if ([viewClassName containsString:@"UIbarBackGround"]) { // iOS 13 下名字变为 UIBarBackground
view.alpha = 0;
}
_UIBarBackground的alpha被改为0,你加到里面的那个backgroudView也就显示不出来了,导致vhl_setBackgroundColor不起作用
机型:iPhone 6s Plus
系统版本:13.1.1
VHL版本: 1.1(pod最新版本)
xcode: 11.0

@huanglins
Copy link
Owner

我这里没有复现哦

@LeeYZ
Copy link
Author

LeeYZ commented Oct 8, 2019

view.alpha = 0;
你那里这句走了吗?

@huanglins
Copy link
Owner

没走,因为 iOS 13 下不叫这个名字。UIbarBackGroundUIBarBackground 字母大小写有区别,这个好像是我在适配 iOS 11 下某个特定版本的问题加的。

@LeeYZ
Copy link
Author

LeeYZ commented Oct 8, 2019

iOS 13之前是没有问题的,iOS 13用户报过来的问题,我看背景色没有显示,我看你适配iOS 13就升级到1.1后,发现还是有问题,看看源码发现是这个地方的问题,所以我就修改了一个源码,现在没问题了,一会儿我给你截图看一下

@huanglins
Copy link
Owner

你那里会进 if ([viewClassName containsString:@"UIbarBackGround"]) {} 这个判断吗?会的话,是在什么情况下进的,我好测试下。我这边确实没有复现

@LeeYZ
Copy link
Author

LeeYZ commented May 11, 2020

iShot2020-05-1114 44 21

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