とにかく自分のアプリでiOS7とiOS7以前に推奨されないAPIを切り替える
(1)Status barを非表示にする。
plistに”View controller-based status bar appearance” を追加し”NO“を設定。
(2)presentModalViewControllerにアラート
変更前
[self presentModalViewController: viewController animated:YES];
変更後
[self presentViewController: viewController animated:YES completion:nil];
(3)dismissModalViewControllerAnimatedにアラート
変更前
[self dismissModalViewControllerAnimated:YES];
変更後
[self dismissViewControllerAnimated:YES completion:nil];
[self dismissViewControllerAnimated:YES completion:nil];
(4)iAdの表示
self.canDisplayBannerAds=YES; これだけ。