4 Traits of Highly Independent Women

I admire independent women and have seen many examples of them in my life. One of them is my mom. She was a single parent for 11 years before she remarried. And she worked very hard to accommodate…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Modify the AdMob Helper to Disable Ads

Apple Game Frameworks and Technologies — by Tammy Coron (186 / 193)

👈 Modify the GameData Class to Store Purchases | TOC | Modify the GameScene Class to Handle Paid Con tinues 👉

When the player purchases the “Remove Ads” product, you need to stop the banner ads from running — and only the banner ads. You don’t want to prevent rewarded ads from running because that’s how players receive “free” continues (and you receive extra revenue).

With these changes, the code first checks to see if the player purchased the “Remove Ads” product by checking the GameData.shared.products array for a match. If a match is made, the code sets adBannerView.delegate = nil and removes the adBannerView view from its superview. These two actions, effectively, hide the banner ads.

Next up, it’s time to modify the GameScene class to handle paid continues.

👈 Modify the GameData Class to Store Purchases | TOC | Modify the GameScene Class to Handle Paid Con tinues 👉

Add a comment

Related posts:

The Night Sky in October is Scary Fun!

The night sky in October is marked by Mercury, Venus, and a pair of meteor showers — and did we mention Astronomy Day?

Creating an appreciation for luxury with legacy.

How do you make luxury relevant in a world where it’s all about the next big thing? As a luxury brand, it’s not only about what you are. It’s what you stand for. Consumers are drawn to brands that…

I am a suicide attempt survivor.

When I was a teenager, during college, I was involved in a car accident. My family doctor prescribed Percocet and Xanax to me for my pain and stress/anxiety. A few days later, without any fore…