2017-06-19 35 views
0

這是我的代碼:不平衡呼叫開始/結束的外觀轉變爲<UINavigationController的:*****>

UINavigationController *navigaitonController = [[UINavigationController alloc] initWithRootViewController:tips]; 
navigaitonController.modalPresentationStyle = UIModalPresentationCustom; 
navigaitonController.transitioningDelegate = tips.transiction; 
navigaitonController.modalPresentationCapturesStatusBarAppearance = YES; 
[controller presentViewController:navigaitonController animated:YES completion:nil]; 

時提示控制器被呈現或駁回,控制檯日誌:

Unbalanced calls to begin/end appearance transitions for <UINavigationController: *****> 

有什麼問題?請幫幫我。

+1

的可能的複製視圖控制器[不平衡通話開始爲/終端外形的轉變]( https://stackoverflow.com/questions/14412890/unbalanced-calls-to-begin-end-appearance-transitions-for-uinavigationcontroller) – jegadeesh

回答

0

在呈現視圖控制器時將動畫設置爲NO。

觸發此消息是因爲你想表達的前一個視圖控制器的動畫仍在繼續

+0

當我將動畫設置爲NO時不工作。 –

+0

當控制器出現時我需要做動畫。 –

+0

轉到問題評論部分中的鏈接。如果仍然遇到問題,請發表評論。 – jegadeesh

相關問題