We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在有UIAlertView弹出后,因为UIEmptywindow的alertLevel为2000,keyWindow会被替换为emptyWindow,这会导致项目中有[UIApplication sharedApplication].keywindow addsubView:xxView];的控件被添加到emptyWindow上,以至于这些控件无法交换和销毁。
The text was updated successfully, but these errors were encountered:
我按你说的操作没有出现这个问题。另外,在这个控件初始化的时候,会通过 makeKeyAndVisible 的方式添加到 app 的 windows 里,然后又将原先 window 重新置为 key,如果在这中间进行 keywindow addsubView,就会导致你说的问题。
Sorry, something went wrong.
@zhaitong 可以在appdelegate头文件中将初始化的 window 属性抛出,需要使用的地方直接使用
用delegate.window是没有问题
No branches or pull requests
在有UIAlertView弹出后,因为UIEmptywindow的alertLevel为2000,keyWindow会被替换为emptyWindow,这会导致项目中有[UIApplication sharedApplication].keywindow addsubView:xxView];的控件被添加到emptyWindow上,以至于这些控件无法交换和销毁。
The text was updated successfully, but these errors were encountered: