Comments (2)
XHLaunchAd.m 的207行的setupLaunchAd 方法里换成这个就好了
UIWindow *window; if (@available(iOS 13.0, *)) { NSArray *array =[[[UIApplication sharedApplication] connectedScenes] allObjects]; UIWindowScene *windowScene = (UIWindowScene *)array.firstObject; window = [[UIWindow alloc] initWithWindowScene:windowScene]; window.frame = windowScene.coordinateSpace.bounds; } else { window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; }
from xhlaunchad.
XHLaunchAd.m 的207行的setupLaunchAd 方法里换成这个就好了
UIWindow *window; if (@available(iOS 13.0, *)) { NSArray *array =[[[UIApplication sharedApplication] connectedScenes] allObjects]; UIWindowScene *windowScene = (UIWindowScene *)array.firstObject; window = [[UIWindow alloc] initWithWindowScene:windowScene]; window.frame = windowScene.coordinateSpace.bounds; } else { window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; }
这里还需要一个判断,如果项目中保留了SenceDelegate,但是没有实际应用,windowScene获取为nil
from xhlaunchad.
Related Issues (20)
- 结合自己的项目做的一些小改动 HOT 1
- AVAudioSession获取和释放音频焦点都会卡一下UI
- 第一次进入APP后,选择了一张图片保存在沙盒中,下次启动的时候从沙盒中加载选择的一张图片 HOT 1
- 显示占位图时会闪烁 HOT 2
- iPad分屏模式选启动占位图大小异常
- XHLaunchAd导致wkwebview加载的H5滑动卡顿 HOT 1
- L
- 这个库不维护了嘛
- 关于修改开屏图片的问题!!!
- 跳过按钮在部分新型iPhonex系列上位置不正确导致点击困难的问题
- iPhone13 GIF速度过快 HOT 2
- Is the new one any good?
- Is this a new folding screen?
- git图 播放速率 超级快 HOT 1
- 如何在广告显示的时候在下面加一个品牌腰封,就是类似展示图的下面的那个标签
- 在广告播放的倒计时内,退回后台,再切到前台,直接跳过了倒计时,希望他不直接跳过,继续倒计时,有解决办法么 HOT 1
- 根控制器中有弹窗,点击广告进入广告页面之后会显示弹窗,有好的解决方案吗
- 怎么可以设置图片下载完毕才显示
- 如果一开始启动的时候是横屏状态,广告界面是竖着打横的 怎么解决
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 xhlaunchad.