iad

iad iPhone 5 Storyboard implementation

末鹿安然 提交于 2019-12-12 03:05:43
问题 I have a paid app on the app store, and I'm trying to make a free version of the same app with ads. I was thinking about using iAds. I implemented the following code: -(void)bannerViewDidLoadAd:(ADBannerView *)banner { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.01]; [banner setAlpha:1]; [UIView commitAnimations]; CGRect adFrame = adView.frame; adFrame.origin.y = self.view.frame.size.height; adView.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin; } -

Display an iAd banner in landscape in swift & spritekit

自古美人都是妖i 提交于 2019-12-12 02:59:11
问题 Firstly ive looked through stack overflow for hours and none of the similar topics work for what im trying to do. i have iads showing however its the size of an iad which would display in portrait mode, somehow i need one that works for landscape, here is the code that i have and i have changed the numbers and messed around with the code but it just wont work for me. This code is in my gameviewcontroller: var SH = UIScreen.mainScreen().bounds.height let transition = SKTransition

iAd freezes Sprite Kit app

跟風遠走 提交于 2019-12-12 02:58:20
问题 I find that tapping on iAds can freeze the screen on any Sprite Kit game. It's not just my specific project, since the stock Sprite Kit example project also freezes with iAd. This does not happen in the simulator though! I cannot decide whether if it's because the simulator runs iOS 8 and my actual testing device is on 7.1, or because of the fact that the simulator is just a simulator so it does things differently. So if you tap on the iAd then click on the link in the iAd to go to safari (or

iAd Freezes App iPhone 5[s][c]

爱⌒轻易说出口 提交于 2019-12-12 02:46:27
问题 My team and I just finished our very first app, and we ran into a problem with iAd. We're still using the Apple developer ads; but if we tap on the Ad, then close out of the ad and click on a node it crashes the app, it seems to only be happening on the iPhone 5[s][c] though, does anyone know what could be causing this? EDIT: We're using SpriteKit. 来源: https://stackoverflow.com/questions/22585840/iad-freezes-app-iphone-5sc

How to make iAds work on a 3.0 + iPhone-iPad app?

ぐ巨炮叔叔 提交于 2019-12-12 01:35:53
问题 I created a universal app for the iPhone-iPad. I'm only working on the iPhone part at the moment. In the header file for the view controller for the iPhone one, I import the adbanner header and create an adbannerview variable with a matching property. I don't make it in the nib file but rather check at run time if the class exists, if it does, I create an adbanner programmily and then attach the adbannerview variable to it so I can refer to it inside other functions. Everything works on the 4

iAd + multiple UITableViewControllers

你说的曾经没有我的故事 提交于 2019-12-12 01:35:43
问题 I've been looking for this for awhile now.. Is there a way to add iAds (or AdMob, or any other mobile advertising thing) to UITableViewControllers ? At the most, my app goes about 3 or 4 levels deep, and I'd like to keep showing ads throughout all levels, without sending new ad requests each time (most solutions do this). Thanks in advance! 回答1: I know this question is old, but for anyone else that is curious and ran into this: You simply need to retain the instances between view transitions.

canDisplayBannerAds Issue when Starting in Landscape Mode

随声附和 提交于 2019-12-12 00:26:21
问题 I have enabled banner ads via self.canDisplayBannerAds = YES; on a modal view within my app. The banner shows at the bottom of the screen just below a toolbar. When starting the app in portrait mode and moving to this VC, the ads look correct. When on this VC if I rotate to landscape mode the view also resizes correctly and all is well. However, if I start the app in landscape mode and then navigate to this VC, the toolbar is not displayed correctly. The buttons are forced down partially off

Is it allowed to hide iAds even when they are available?

℡╲_俬逩灬. 提交于 2019-12-11 23:25:02
问题 I need to hide iAds depending on certain conditions, regardless their availability. So, I was wondering if my app would be rejected in the case where I hide the iAd, even when there's an iAd being displayed. 回答1: iAds will not work if their alpha is set to anything other than 1, so you could simply use this code to turn them off: ADBannerView *banner; [banner setAlpha:0]; This is how you would remove ads in apps, too, so your app will not get rejected for doing this - again, iAds do NOT

iAd works on simulator but crash on device(ipad)

我怕爱的太早我们不能终老 提交于 2019-12-11 22:44:04
问题 I am trying to integrate iAd to my app, here is what I do Create a single view app(devices type universal ) by Xcode 5.1. Add iAd.framework to my project. Import <iAd/iAd.h> in ViewController.h Add self.canDisplayBannerAds = YES; in viewDidLoad method. Compile and run the app on iPhone and iPad simulator The app works well on both simulator and I can see the banner at the bottom of my app. But when I test it on my iPad(running IOS 6.1), the app crashes, Here is what I got. 2014-04-19 19:25:56

iAd frame returning wrong height on iPhone

橙三吉。 提交于 2019-12-11 21:19:31
问题 I have an iAd which I am trying to position at the bottom of the screen though when I try to get the height of the ad so that I can put it at the bottom. This error only occurs when I enter the screen in a landscape orientation as the ad is taller in the portrait orientation and only on the iPhone simulator as on an ipad the ads are the same height. The method I am using to put the add at the bottom is by setting the y value of the ad frame to the height of the view minus the height of the ad