iAd出现在模拟器上,但未出现在设备上 [英] iAd appears on simulator but not on device
问题描述
当我在模拟器(4.0)上运行应用程序时,iAd会显示为测试广告。但是,当我在ipod(4.0)上部署该应用程序时,iAd甚至没有显示为测试广告。
When I run app on simulator(4.0), iAd is appearing as Test advertisements. But when I deployed the app on ipod(4.0) , iAd is not appearing, even as Test advertisements.
请尽早帮助我...
我来自印度...
Please help me out as early as possible... I m from India...
问候...
推荐答案
你来自哪里?也许您所在的国家/地区无法使用iAd!。
Where are you from? Maybe iAd is not available in your Country!.
请确保您的设备已连接到Internet(WiFi或3G)。
Be sure your device is connected to Internet (WiFi or 3G).
要在您的应用程序中实现iAd,您需要将iAd框架导入到您的项目中,并将其#include到显示广告的ViewController的 .h中。例如:
To implement iAd in your application you need to import the iAd framework to your project and #include it to the ".h" of the ViewController where the Ad will be shown. For example:
YourViewController.h
#import <UIKit/UIKit.h>
#import <iAd/iAd.h>
这篇关于iAd出现在模拟器上,但未出现在设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!