XCode中创建了一个subView显示移动广告。在iPhone5中广告显示的正常,但是在iPhone4中就不正常了。
因为没用到auto layout 所以有没其他方法能让广告同时适应两种屏幕尺寸?比如界面构建器什么的。
谢谢
[adView setFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-adView.frame.size.width,
[UIScreen mainScreen].bounds.size.height-adView.frame.size.height - [UIApplication sharedApplication].statusBarFrame.size.height,
adView.frame.size.width,
adView.frame.size.height
)];
如果广告页的框架已经设置了,可以试试。