iad

Reloading an SKScene or View to remove iAd after In App Purchase

筅森魡賤 提交于 2019-12-13 01:43:24
问题 I've successfully removed iAds from my Sprite Kit game after an In App Purchase, but the problem is that the app needs to be restarted for the ads to stop showing. This leads me to believe that the view or scene needs to be refreshed/reloaded somehow (I've tried so many ways) for the iAds to disappear after the In App Purchase is made. The In App Purchase is made in a separate class called PurchasedViewController which I present modally. Currently, I'm trying to send a notification after the

iAds are leaking memory

最后都变了- 提交于 2019-12-13 00:32:19
问题 I recently implemented iads by following the WWDC video. However, while testing with leaks I found that my ads were leaking. I heard that this is a known problem with iads. Someone mentioned that releasing the banner in viewDidUnload might help but that didn't work for me... Does anyone know any way around these leaks? Even though the leaks are pretty small, I have many view controllers displaying them throughout my app and the leaks quickly add up 回答1: I noticed a few people saying that

How can I enable iAd when using Sprite Kit?

一世执手 提交于 2019-12-12 12:41:34
问题 In IOS 7, we can enable iAd very easy when using: self.canDisplayBannerAds = YES; in code ViewDidLoad of UIViewController However, I cannot use this in my ViewController (the ViewControl that load SKScene). My game is crash when loading. So how can I active iAd in my game (using Sprite Kit)? 回答1: You can only show iAd in a UIViewController subclass. You are doing it right. Put the following code in your UIViewController and not in the SKScene. Please refer to this tutorial for the exact code:

How to carry on In-App Purchase throughout whole app? (Remove ads from MULTIPLE views)

℡╲_俬逩灬. 提交于 2019-12-12 10:17:09
问题 I have written my code for an In-App Purchase to remove ads and it works flawlessly, except, it only works on the view controller where I removed my ads from. I want it to carry over throughout my whole app. How would I do that? Better understanding : I have Ads on a few view controllers in my app. I have a Information view controller where you can purchase the removal of ads. The thing is : it does't carry over to my other views, as if I go back to the menu view controller. Also, when I go

iOS 6 and iAds giving too many warnings

橙三吉。 提交于 2019-12-12 09:47:47
问题 Here is my iAd code and I'm getting warnings about setRequiredContentSizeIdentifiers - deprecated in iOS 6 ADBannerContentSizeIdentifier320x50 - deprecated in iOS 4.2 ADBannerContentSizeIdentifier480x32 - deprecated in iOS 4.2 setCurrentContentSizeIdentifier - deprecated in iOS 6 ADBannerContentSizeIdentifier480x32 - deprecated in iOS 4.2 How do I fix this so there are no warnings. - (int)getBannerHeight:(UIDeviceOrientation)orientation { if (UIInterfaceOrientationIsLandscape(orientation)) {

How do I remove ads with In-App Purchase?

[亡魂溺海] 提交于 2019-12-12 09:27:04
问题 I am having trouble finding out why my iAd is not being removed after a purchase. Here is what I am trying in the file that has the iAd: #define kInAppPurchaseUpgradeProductId @"kInAppPurchaseUpgradeProductId" NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults]; BOOL adsAreOff = [defaults boolForKey:kInAppPurchaseUpgradeProductId]; if (!adsAreOff) { adView = [[ADBannerView alloc] initWithFrame:CGRectZero]; adView.frame = CGRectOffset(adView.frame, 0, -50); adView

iAd ADBannerView appears tinted on Device

随声附和 提交于 2019-12-12 08:54:59
问题 I'm getting a tinted adBannerView on the device, instead the normal adBannerView as it appears in the Simulator. Any ideas on this? 回答1: On the device, go to Settings > Developer and disable the option "Highlight Clipped Banners" to remove the colored layer. If enabled, the colors show you if the iAd banner view is clipped (red) or not (green). Note that this setting is system-wide, and affects not only the development builds from your app, but also production builds from all other apps

interstitialAd will not show up

天涯浪子 提交于 2019-12-12 04:54:47
问题 i´ve created a SK Game with one viewController and want to view full screen ads but they don´t show up. in ViewController.m: (viewWillAppear) self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual; [self requestInterstitialAdPresentation]; inAppDelegate.m: [ViewController prepareInterstitialAds]; 回答1: Your approach looks correct, and you are right that you only need those method calls, You may just need to move: [self requestInterstitialAdPresentation]; into

iAd error Cannot create a session after the response has been committed

♀尐吖头ヾ 提交于 2019-12-12 03:59:18
问题 when i go to my developer Account and klick on iAd, I get this error: I have only 1 App approved and I didn't change anything for the past 7 days. (It worked before, no changes made). 回答1: It's appare that some user has some problems when they access from itunes connect. But if you use this link: https://iad.apple.com/itcportal/#app_homepage should work correctly. 来源: https://stackoverflow.com/questions/32660353/iad-error-cannot-create-a-session-after-the-response-has-been-committed

iOS Swift: iAd Interstitial leaves black screen after dismissed

限于喜欢 提交于 2019-12-12 03:36:50
问题 I'm trying to add ads into my game, every time the user loses I present my game over view controller. On occasions, when an ad loads I have a full screen interstitial is shown on top of the game over screen. My problem is the interstitial doesn't come with a close button, so I added one so the user doesn't feel forced to tap on the ad every time it comes up. When the user clicks the close button, the ad is dismissed and the game over view controller is once again shown. Problem is, once in a