2

我用来在任何分辨率下将广告横幅固定到屏幕底部的代码是:

[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)];

我只需要一些帮助来确保我的工具栏不被覆盖。我该怎么做呢?

4

0 回答 0