1

これまでのところ、インターネットには、私に起こっているこの状態復元の警告に対するヒットはありません。

-[UIViewController(StateRestoration) decodeRestorableStateWithCoder:]: Warning - State Restoration for UIViewController has presented view controller, but view controller is either not in a window, or the window is hidden. Deferring presentation which might cause flashing when presentation is made after a turn of the run loop:
self: <SomeTabBarController: 0x16e91220>, presented view controller: <UINavigationController: 0x16dbe260>

TabBarController には、ViewController (vc1) をナビゲーション コントローラーにプッシュするビューがあります。次に、VC1 は NavigationController をそれ自体にモーダルにプッシュします。これには、vc2 で始まる独自の一連のビュー コントローラーがあります。

状態が復元されると、(vc2 のスナップショットから) vc1 にフラッシュバックしてから、最終的に vc2 が再びライブで表示されます。

どこから調査を開始できるかについて誰かがアイデアを持っていれば、それは大きな助けになるでしょう.

4

1 に答える 1

1

ウィンドウキーを作成して で表示することで、これを解決することができましたapplication:willFinishLaunchingWithOptions:

- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [self.window makeKeyAndVisible];
    return YES;
}
于 2014-05-21T08:34:49.393 に答える