IAd works on iPhone but not iPad

I just uploaded my first app to an iPhone / iPod only app store. It works and the iAd features work when it runs on an iPhone or iPod, but when it runs on an iPad and it can be scaled and whatever, iAd banners don't load. No errors are generated, but banner ads are not loading.

Does anyone have any ideas? I tried to change the app to generic and then it works but the layout changes. Is there a way for iAds to work with a larger iPad or just because the app has just been released?

Thank.
J

+2


source to share


2 answers


The way it should be. If your app doesn't have an iPad version and users just run it zoom

on an iPad, iAds won't appear. The only way you're going to open iAds is to create a universal app with two storyboards or tips. One for each device. This is what I ended up doing, so all users will get iAds and won't be able to bypass them.



+1


source


I did this by making it generic and checked the idiom flag and doubled any values ​​that require the position or font size. You may need to scale the sprite sizes as well.



if ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad))
{
    _accDescLabel.fontSize = 40;
    _accDescLabel.position = CGPointMake(self.size.width/2 + 100, self.size.height - 260);
}
else
{
    _accDescLabel.fontSize = 20;
    _accDescLabel.position = CGPointMake(self.size.width/2 + 50, self.size.height - 130);
}

      

0


source







All Articles