iAds and SpriteKit: SKScene Freeze on fullscreen exit on device only

烈酒焚心 提交于 2020-01-25 03:41:31

问题


My issue is similar to this one here iAd freezes game's scene, but I feel the issue hasn't been resolved.

I have an iAd in it's own view overlayed over an SKScene so that it doesn't affect the SKScene sizing. The banner functions correctly but on fullscreen exit the SKScene is frozen. App is still receiving touch inputs, verified via NSLogs. If I click the banner again though and exit fullscreen the second time around the SKScene is no longer frozen. Why?

It's important to say that this happens only when testing on a device (iPhone5). On the simulator, there are no issues. Has anyone figured out this conundrum?

Issue is similar to this post iAD View Freezes On Ad Close but the solution: 'Remove self.canDisplayBannerAds = YES' doesn't work for me. While I've tried creating it programatically also, I've implemented the iAd via storyboard, and this is not relevant.

The issue is also here iAd Freezes App iPhone 5[s][c] but the solution is short of superstition and still remains a mystery.

--

The alternative solution to implement an iAd with SpriteKit via self.canDisplayBannerAds and originalContentView works and functions correctly but produces a sizing/scaling issue as it shares the view with the SKScene (Spritekit iAds messing with scene size) which I'd rather avoid, but am willing to use smoke and mirrors to hide the ugly resizing animation/effect as a last resort.

--

If anyone knows the best way to implement an iAd with SpriteKit without sizing issues or freezing issues on device please let me know.

来源:https://stackoverflow.com/questions/23358802/iads-and-spritekit-skscene-freeze-on-fullscreen-exit-on-device-only

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!