其實我有導航控制器作爲根控制器它嵌入main.storyboard,我有兩個屏幕一個屏幕登錄和另一個家庭作爲登錄憑據我需要跳過登錄屏幕,我需要證明家庭screen.From的appdelegate我這樣做跳過它不能正常工作如何從ios中的appdelegate呈現不同的視圖控制器
Unbalanced calls to begin/end appearance transitions for <UINavigationController: 0x7fadf384c600>.
let storyboard=UIStoryboard.init(name: "Main", bundle: nil)
let navigationController=storyboard.instantiateInitialViewController()
let username=UserDefaultUtil.getString(key: AppConstants.PREF_USERID)
print(username!)
if username != ""
{
window?.rootViewController=navigationController
let sectionController=SectionController(nibName: "SectionController" , bundle: nil)
navigationController?.present(sectionController, animated: true, completion: nil)
}
做viewWill主頁的首頁。 –