我在其中一個選項卡中有一個帶有UISplitView的選項卡式應用程序。爲什麼類別中的didRotateFromInterfaceOrientation會導致UISplitView出現問題?
我正在使用UITabBarController+iAds,並且存在開發人員迄今無法解決的問題。
不幸的是,這是我的UI看起來像在iPad上的旋轉:
類別是從內部AppDelegate中調用,下面的代碼是用來刷新的廣告時,該設備被旋轉:
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
NSLog(@"Did rotate");
[self layoutBanner];
}
據我所知,這是阻止MasterViewController正常工作,但我不完全理解背後的原則方法調用的級聯以瞭解如何解決此問題。
會發生什麼事,如果你不叫'[自layoutBanner]' ? – 2014-09-25 16:57:09
問題仍然出現,但廣告橫幅未重新加載。 – Leon 2014-09-25 17:11:03