iad

How to hide AVPlayerViewController control bar?

房东的猫 提交于 2019-12-10 11:35:39
问题 I've implemented iAd's Preroll Video Ad and I want to guarantee that my user will watch the entire advertisement. How do I hide the AVPlayerViewController 's control bar so the user can not tap "Done" and get out of the video before it finishes? self.canDisplayBannerAds = YES; [AVPlayerViewController preparePrerollAds]; player = [[AVPlayerViewController alloc] init]; player.showsPlaybackControls = NO; player.delegate = self; 回答1: You can use this code to do the same. You need to call play

App got approved, iAd not showing up

血红的双手。 提交于 2019-12-09 14:51:35
问题 My app has just got approved and unfortunately my iAd banner is white blank. I've configured iAd on iTunes Connect. Thanks, 回答1: It's worth noting that if you run your app in debug, you'll get confirmation on whether the system you've implemented works, as you'll be getting test ads appearing (Grey adverts with Apple branding, clicking on one will show a message saying test adverts are working). If this is not the case, then there is an issue with the code. You'll need to disclose that code

Is it a problem when an iAd may be obscured?

馋奶兔 提交于 2019-12-09 08:09:08
问题 I added the ADBannerView to a view and when I load the app I get the following message: ADBannerView: WARNING A banner view (0x7a023c0) has an ad but may be obscured. This message is only printed once per banner view. As far as I can see the entire banner is visible on the screen. Is this really a problem? Or is it only a warning that I can ignore? 回答1: As Stephen Darlington says, it's a good idea to figure out what the issue is. An easy way to double-check this in code (from a view

How to Hide iAD

梦想的初衷 提交于 2019-12-09 01:34:28
问题 I would like to ask the following questions: 1) How to hide iAD when the user clicks on the empty screen? 2) How to identify inactivity i.e. If user has an opened some application and leave the iphone and went away and application remained open? Update: According the apple documentation, this method is responsible for dismissing the iAD. but this method is still not working in my code. Any sample or how this method works? - (void)cancelBannerViewAction Explanation: A banner view action can

iAd appears in simulator but not on device

早过忘川 提交于 2019-12-08 12:24:59
问题 When I run my application I can see my iAd in the simulator, that is pre-filled with "Test Advertisement" However, when I run the application on my device, the iAd area is blank, with no pre-filled ad. Why is this? My iAd is in a UITableViewCell: #import "iAdCell.h" @implementation iAdCell @synthesize adView; - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) { adView = [

How to make a single shared instance of iAd banner throughout many view controllers?

最后都变了- 提交于 2019-12-08 07:00:55
问题 I have tried using a singleton class in my app delegate but I haven't been able to get that to work. I've also checked out the iAdSuite examples (particularly the containerBanner example because it seemed to be the most relative) but I can't figure it out. If there's a better way to accomplish this without using a singleton class and you can point me in the right direction I'd really appreciate it. Some of my singleton class code is below. Thank you! @interface App Delegate @property (assign)

iAd & AdMob Heavy on Memory

这一生的挚爱 提交于 2019-12-08 06:35:46
问题 I've just completed coding my new game for the iOS platform and now I decided that it is time to integrate iAd/AdMob banners at the bottom of the screen. I have completed the implementation and an iAd is showing up and if it fails then it is replaced by an AdMob banner. This is great, however I checked over the memory consumption of the app and prior to iAd/AdMob integration, my app was running using around 19MB of memory - with the the iAd/AdMob integration, it is running using over 50MB of

iAd not showing in Downloaded version of my app

社会主义新天地 提交于 2019-12-08 05:13:48
问题 I have made an app with iAd. It appeared both in simulator and my device when I deploy it. However, after the app is approved and up on store I downloaded it and cannot see the iAd. Anyone had this issue before? Some of the iAd related code: #pragma mark iAd delegate methods -(void)bannerViewDidLoadAd:(ADBannerView *)banner { [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0]; [banner setAlpha:0.5]; [UIView commitAnimations]; } -(void)bannerView:(ADBannerView *)banner

Frequency of iAds showing?

若如初见. 提交于 2019-12-08 04:55:22
I've just released my first application with iAds enabled. It's been accepted by Apple and I've already earned something minor like $0.28. Now to me this means that ads have been showing on some of my users devices. I was aware that my device will only show test ads , so I downloaded the application on a friends phone, and tried that. On this device, the ads simply never show so I was just wondering, do the ads only show at certain times? After a set time? Or have I set it up wrong? I wouldn't have thought Apple would have accepted my binary if it was setup incorrectly but I guess that's a

Spritekit iAds messing with scene size

∥☆過路亽.° 提交于 2019-12-08 03:15:20
问题 I am making a game using spritekit and everything works perfectly except when I add the code to add an iAd. When I add the iAd everything works but it seems that the iAd is resizing the scene when it is being displayed. This is my code to display the iAd, it is in the ViewController.m : #import <iAd/iAd.h> #import "ViewController.h" #import "MainMenu.h" @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Configure the view. SKView * skView = (SKView *)self