iOS 设备的广告尺寸
Ad Sizes for iOS devices
我想在可旋转的应用程序底部添加一些自定义广告。这适用于任何设备,而且只能在纵向模式下使用。图像大小是否有最佳实践?一种尺寸是否可行,或者有没有办法根据设备尺寸选择一个范围?该广告将与我们目前看到的类似,只是由我的后端管理。
您可能希望它与 iAds 保持一致。
iAd supports different banner sizes for portrait and landscape apps.
The exact size of advertisements depends on the device the banner is
being shown on. On an iPhone, a portrait advertisement is 320 x 50
points and 480 x 32 points for a landscape advertisement. On an iPad,
a portrait advertisement is 768 x 66 points and 1024 x 66 points for a
landscape advertisement. In the future, additional sizes may be
exposed by iAd.
如果您自己滚动,则必须考虑设备方向,即 AutoLayout / viewWillLayoutSubviews()。
我想在可旋转的应用程序底部添加一些自定义广告。这适用于任何设备,而且只能在纵向模式下使用。图像大小是否有最佳实践?一种尺寸是否可行,或者有没有办法根据设备尺寸选择一个范围?该广告将与我们目前看到的类似,只是由我的后端管理。
您可能希望它与 iAds 保持一致。
iAd supports different banner sizes for portrait and landscape apps. The exact size of advertisements depends on the device the banner is being shown on. On an iPhone, a portrait advertisement is 320 x 50 points and 480 x 32 points for a landscape advertisement. On an iPad, a portrait advertisement is 768 x 66 points and 1024 x 66 points for a landscape advertisement. In the future, additional sizes may be exposed by iAd.
如果您自己滚动,则必须考虑设备方向,即 AutoLayout / viewWillLayoutSubviews()。