I have created view in ui constructl , then waiting for 1m ( else the dialoge cann ' t be displayed ) , password dialoger then be created in order to displaying view if right , else wrong info will be displayed and exit . factly , it is normal if right but will be directly exit if wrong without any wrong info . if waiting 1m after creating wrong info , dialoger will not be disappeared before 1m 我在ui構(gòu)造函數(shù)里先創(chuàng)建視圖,然后設(shè)置等待時(shí)間1秒(否則無(wú)法顯示對(duì)話框) ,再創(chuàng)建密碼對(duì)話框.希望在密碼正確時(shí)進(jìn)入視圖,錯(cuò)誤時(shí)出現(xiàn)錯(cuò)誤提示信息并退出.但正確輸入密碼時(shí)沒(méi)有問(wèn)題,輸入錯(cuò)誤密碼時(shí)錯(cuò)誤提示不會(huì)顯示錯(cuò)誤提示就直接退出程序.如果設(shè)置等待時(shí)間,則密碼對(duì)話框不會(huì)消失,錯(cuò)誤提示也不會(huì)出現(xiàn),過(guò)完1秒后會(huì)直接退出