簡體   English   中英

復制和粘貼有時不會出現在我的 UITextView 中

[英]Copy and Paste sometimes don't appear in my UITextView

我創建了一個帶有 UITextView 的應用程序,當我點擊文本時,它偶爾不會顯示 Select、復制、粘貼菜單項。 如果我雙擊主頁按鈕並關閉應用程序,然后重新打開它,我可以再次這樣做,這讓我認為這是一個 memory 問題(如果它沒有足夠的 memory,它沒有顯示菜單?)

我的問題是我創建了一個 UIWindow 來覆蓋主要的 window。 我給 window 一個 UIWindowLevelAlertView / 20 的 windowLevel,這樣它就會在主 window 和警報視圖之間出現 hover。 However, occasionally, AlertViews upon releasing key window, would revert the key window to my cover, and not the main window, and that would invalidate the menu controller's ability to properly display itself over the UITextView that was sitting in the main window.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM