Warning: Attempt to present xx on yy whose view is not in the window hierarchy!
編譯xcode的時候報如下警告:
錯誤程式碼
Warning: Attempt to present xx on yy whose view is not in the window hierarchy!
分析
由於呈現模態檢視xx類時,yy檢視的view還沒有被載入到window中。
造成這個原因可能是在yy的viewdidload中呈現xx模態檢視。
解決
把presentModalViewController放到viewDidAppear或者viewWillAppear中
相關推薦
Warning: Attempt to present xx on yy whose view is not in the window hierarchy!
編譯xcode的時候報如下警告: 錯誤程式碼 Warning: Attempt to present xx on yy whose view is not in the window hierarchy! 分析 由於呈現模態檢視xx類時,yy檢視的view還
[iOS] Swift Attempt to present UIAlertController whose view is not in the window hierarchy
Found a solution here. I’m probably doing it wrong but if not it might be an Apple bug. The workaround is to delay the presentation of the UIAlertControll
Swift Attempt to present UIAlertController whose view is not in the window hierarchy
針對相機元件(UIImagePickerController)結束(dismiss)後,無法顯示錯誤訊息(UIAlertController)的處理。 我的解法是,在關閉 picker 的時候,在 完成時再去做 pop alert. picker.dismiss(animated: true, compl
iOS開發出錯whose view is not in the window hierarchy 的解決
大熊貓豬·侯佩原創或翻譯作品.歡迎轉載,轉載請註明出處. 如果覺得寫的不好請多提意見,如果覺得不錯請多多支援點贊.謝謝! hopy ;)一個簡單的單視窗App在執行時出現錯誤:2016-04-07 14:28:48.411 BlurViewAndPopView
Warning: Attempt to present on xxx which is already presenti
iOS8中使用 UIActionSheet 跳轉到相機出錯. UIActionSheet : UIView // UIActionSheet is deprecated. Use UIAlertController with a preferredStyle of UIAlertController
Selenium: either the element is no longer attached to the DOM, it is not in the curren
either the element is no longer attached to the DOM, it is not in the curren 元素不再附加到DOM 解決方法 每次都重新尋找xpath,並且加上延時 while n < 30 :
xx is not in the sudoers file解決_linux分配伺服器使用者許可權
此問題的大致意思是講,所在使用者沒有許可權進行此操作。 問題:如何完成進行伺服器使用者許可權的分配? 連線伺服器,在root使用者的根目錄下,進入 vi /etc/sudoers 基本配置看:cd/etc 檔案目錄淺解 linux分配伺服器使用者許可權_使用者
sudo執行命令,xx is not in the sudoers file. This incident will be reported.解決
使用sudo執行root許可權才能執行的命令時,輸入密碼後執行被終止,命令列提示: xx is not in the sudoers file. This incident will be reported. 即:xx不在 sudoers 檔案中。此事將被報告。 這個
linux_虛擬機器_啟動出錯_Realtek PCIe GBE_ubantu The VM session was closed before any attempt to power it on.
問題描述:前一點執行虛擬機器還好好的,隔天后在啟動就出錯了,報錯如下 就是橋接網絡卡介面名稱未指定 上圖為經過一系列操作後可以成功執行的網路選項的配置 解決如下: 我們將橋接的配置檔案VBoxNetLwf.inf新增到系統中即可
[已解決] Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a n
.androidstudio.cartdemo, PID: 12678 05-29 11:45:24.014 12678-12678/tech.androidstudio.cartdemo E/AndroidRuntime: java.lang.NullPointerExc
While reindexing loaded db appear: Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate st
While reindexing loaded DBs for query and read benchmarking of JCR 1.15.x appear: Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate stack
Failed to execute goal on project e3-manager: Could not resolve dependencies for project cn.e3mall:e3-manager:pom:0.0.1-SNAPSHOT: Could not find artif
新建好工程後一定要記得從底層開始clean和install 在啟動新建的工程時到最後一步出現了這個問題: Failed to execute goal on project e3-manager-web: Could not resolve dependencies for project cn.e3ma
"Failed to execute 'texImage2D' on 'WebGLRenderingContext': tainted canvases may not be loded."
出現這錯誤是因為threejs內部沒有處理圖片跨域問題,設定圖片TextureLoader為允許跨域就可以了var loader=new THREE.TextureLoader(); loader.se
[已解決]Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()'
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportant
RN問題java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getId()'
錯誤資訊: java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.view.View.getId()’ on a null object reference j
make: Warning: File `Makefile' has modification time 1.8e+06 s in the future
通過 系統 -m time war rom 我想 warning mes 通過這個錯誤提示信息我們可以知道,Makefile的修改時間點是Linux當前的一個未來時間點。可以通過修改Linux的當前時間來解決這個問題: $sudo date -s ‘hh:mm:ss yy
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/../thinkphp/start.php) is not within the allowed path(s):
rest res pat warning tar file PE pan public Warning: require(): open_basedir restriction in effect. File(/www/wwwroot//../thinkphp/start.
TypeError: Value passed to parameter 'a' has DataType int64 not in list of allowed values: float16,
是我 TP 是把 sdn 數據類型 data https http list 這是我在做多元線性回歸時遇到的錯誤:這個也是數據類型類的錯誤; 解決辦法就是把數據的類型轉化之後就行的了,於‘TypeError: Input ‘b‘ of ‘MatMul‘ Op has typ
定向運動員識圖過程中視覺搜索特征研究 Study on Visual Search Characteristics of Orienteers in the Process of Map Reading
lec har tro 學院 收錄 專家 page 特點 sea 作 者:劉陽何勁鵬LIU YangHE Jin-peng(Xi‘an University of Technology,Xi‘an,710048,ChinaNortheast Normal Universi
This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime
使用 ConstraintLayout 遇到的問題 This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime ConstraintLayout