Comments (6)
@qasimsqm Seems the window is getting hidden when you call show
.You can fix this by immediately calling
UIApplication.shared.delegate?.window??.makeKeyAndVisible()
UIApplication.shared.delegate?.window??.isHidden = false
right after calling show
from lgalertview.
Same here w/ Objective-C. I did not have time to properly bisect yet, but a known-good version is ref ccb3cb4.
from lgalertview.
Seems that the same problem here #34
from lgalertview.
Please, attach some demo project with the reproducible issue. If I have time, I will take a look.
from lgalertview.
The problem seems to be in LGAlertViewHelper.h, the app window is not necessarily the first window. In my case there are "hosted" windows which are created by AVPlayerViewController before the app window.
So you can try to replace :
+ (UIWindow *)appWindow {
return [UIApplication sharedApplication].windows[0];
}
with :
+ (UIWindow *)appWindow {
return [UIApplication sharedApplication].delegate.window;
}
from lgalertview.
Please, attach some demo project with the reproducible issue. If I have time, I will take a look.
I don't use a storyboard and have this block in application:(UIApplication *)application didFinishLaunchingWithOptions:launchOptions:
:
self.window = UIWindow(frame: UIScreen.main.bounds)
let initialVC = InitialViewController.init()
window!.rootViewController = initialVC
window!.makeKeyAndVisible()
That's how I can reproduce the issue and this works for me as a workaround: #35 (comment)
from lgalertview.
Related Issues (20)
- Hotspot status bar UI Bug
- Why not push latest code to CocoaPods?!
- CocoaPod 版本不是最新代码,actionsheet 选项显示不完全 HOT 4
- LGAlertView line-771 HOT 1
- Alert Size broken on iPad until first rotation occurred
- 唤起遮罩背景是黑色的隐藏后屏幕全是黑的 HOT 1
- Xcode 11 and iOS 13 HOT 1
- Destruction handler fires before view has been removed from superview???
- _UIAlertControllerShimPresenterWindow make window can't interact
- Alert theme is not working as expected if we compile using xcode 12
- LGAlertView.m -line 779 HOT 4
- Xcode 12 报错如下 HOT 1
- strange bug with actionsheet height HOT 1
- crash [LGAlertViewHelper appWindow]
- swift
- LGAlertView do not show HOT 2
- 不想要 title 和 message 当 置 nil 或者 @"" 时 不显示这个行
- UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(cancelAction:)]; tapGesture.delegate = self; // [self.backgroundView addGestureRecognizer:tapGesture];
- Xcode 14.3 出现错误 HOT 10
- Crash on windowVisibleChanged HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lgalertview.