![](/img/trans.png)
[英]UIPresentationController multiple sizes or detents
我正在嘗試實現一個基本上模仿 UISheetPresentationController 行為的演示控制器。 我這樣做是因為我想添加第三個制動器,而且我希望它適用於 iOS 14,所以我不能使用現有的 UISheetPresentationController。 我把它放在可以顯示視圖控制器的地方, ...
[英]UIPresentationController multiple sizes or detents
我正在嘗試實現一個基本上模仿 UISheetPresentationController 行為的演示控制器。 我這樣做是因為我想添加第三個制動器,而且我希望它適用於 iOS 14,所以我不能使用現有的 UISheetPresentationController。 我把它放在可以顯示視圖控制器的地方, ...
[英]Swift UIWindow how to add in full screen mode
我正在嘗試添加另一個 UIWindow 並使其 makeKeyAndVisible 在主 window 之上。 但顯示為工作表(模態)而不是全屏模式我嘗試在 viewController 上使用 modalPresentationStyle 並且沒有任何變化。 ...
[英]UINavigationController modalPresentationStyle not working on iPhones
我正在嘗試使用以下方式將 UINavigationController 呈現為小型 window。 它在 iPad 上運行良好,但在 iPhone 上仍顯示全屏。 任何關於我做錯了什么的提示將不勝感激! ...
[英]How to present viewcontroller in fullscreen on ipad
我有一個視圖 controller,我可以在 iPhone 上以全屏模式呈現它,但在 ipad 上它沒有變成全屏。 (它是一個以 iPad 為中心的小屏幕) 我試過了 請有任何想法 ...
[英]currentContext presentation style changes the size of the child view controller's view
我有一個父視圖 controller 和一個子視圖 controller 占據了父視圖的一部分:class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() ...
[英]How to present ViewController in full screen with behavior of popover? Swift
我需要全屏顯示 VC,但能夠在彈出窗口時向下滑動它,類似於它在 Apple Music 中歌曲細節的工作方式。 我已經嘗試了 vc.modalPresentationStyle 中的每個選項,但它要么是全屏顯示,要么無法向下滑動關閉,要么具有此功能,但不能全屏顯示 ...
[英]UIViewController automatic presentation on top of full screen presentation
我有一些 UIViewControllers 使用modalPresentationStyle =.fullScreen 。 我想使用.automatic樣式在頂部展示另一個。 這可以正常工作,但沒有預期的卡片式樣式(下面的視圖 controller 縮小了)。 有什么辦法可以實現這種風格嗎? 我嘗 ...
[英]Replace the viewcontroller without it appearing behind it
更換 VC 時出現我的問題,舊 VC 繼續出現在后台(請參閱屏幕截圖)。 我該如何解決? 謝謝您的幫助。 ...
[英]How to push ViewController on full screen from modally presented ViewController with navigation controller iOS 13?
我有一種情況,我有三個視圖控制器,假設 VC1、VC2 和 VC3,我在 VC1 上以模態方式呈現 VC2,導航 controller 之類 我想要從 VC2 推動 VC3 overfullscreen 而不改變 iOS 13+ 中 VC2 的演示樣式。 目前它的overCurrentContex ...
[英]How to push on new screen after dismiss model sheet in SwiftUI?
我必須實施類似在屏幕中創建登錄屏幕用戶可以輸入手機號碼並單擊登錄按鈕模型表將打開進行頂部驗證后必須關閉 OTP 驗證表並在儀表板上導航。 在這里,我在該 contentView 上創建了一個內容視圖,單擊打開模型按鈕,模型表(sheetView)將在單擊完成按鈕表后打開,而不是屏幕從Content ...
[英]Difference between 2 adaptivePresentationStyle methods of the UIPopoverPresentationControllerDelegate protocol
我正在使用彈出窗口視圖 controller,我不希望彈出窗口覆蓋全屏 (iOS 13)。 我試圖使用: 正在調用該方法,但顯示的彈出窗口始終是全屏,即使指定了較小的首選內容大小也是如此。 經過大量時間嘗試許多不同的事情后,我發現還有另一種方法有 2 個參數並使用它: 使用此方法使彈出屏幕為指定大小 ...
[英]iOS 13 modalPresentationStyle = UIModalPresentationFullScreen not working for MFMessageComposeViewController
眾所周知,對於普通的UIViewController ,iOS 13+模態表示樣式將默認為.pageSheet 。 如果要更改它,可以在顯示時將其更改為所需的樣式。 我在我的應用程序中使用MFMailComposeViewController和MFMessageComposeViewCont ...
[英]iOS 13 Fullscreen UIImagePickerController?
我正在為 iOS 13 支持更新應用程序,其中一個要求(目前)是將所有模態UIViewControllers轉換回UIModalPresentationStyle.fullScreen ,但UIImagePickerController似乎不尊重我傳遞的值並且是當我挑選照片時總是在“卡片視圖”中, ...
[英]Benefit of using .fullScreen presentation style in compare to .overFullScreen presentation style in ios
我很想知道,如果我們在 iOS 應用程序中以模態方式在 rootViewController 上呈現視圖 controller 時使用.fullScreen與.overFullScreen演示樣式,我們得到的實際好處是什么(例如)。 如果presentedViewController具有透明度,我使 ...
[英]Google & Facebook Login Controllers presenting modally in Xcode 11 iOS 13
我已將 pod 更新到最新版本,並且重寫方法 所有其他控制器都顯示全屏,但 Google 和 Facebook 登錄仍顯示為頁面表。 我如何像之前一樣全屏顯示它們? 提前致謝! 更新我找到了解決方法。 如果我將我的 LoginViewController 設置為 window 的 rootVi ...
[英]Present a view controller modally over current context when the view controller gets load from a nib file
我需要呈現從 xib 文件加載的視圖 controller B,而不是從 storyboard 加載的現有視圖 controller A。 如果我從 storyboard 加載視圖 controller B ,它將正常工作,並將在當前視圖 controller A 上下文中顯示,但如果我從 nib ...
[英]How to: Change UIModalPresentationStyle from .automatic to .fullscreen for a UIViewController
我嘗試按照 Apple 文檔將modalPresentationStyle設置為 .fullscreen。 將modalPresentationStyle設置為.fullscreen如下代碼所示后,系統仍然在UIModalPresentationStyle.automatic "系統默認" 中呈現 ...
[英]What's the difference between currentContext and overCurrentContext?
currentContext和overCurrentContext的 文檔都有相同的描述。 我能發現的差異是: 因為它們何時可用: 使用currentContext ,在關閉呈現的視圖 controller 后,覆蓋視圖 controller 的viewWillAppear被調用(不一定是提供上 ...
[英]modalPresentationStyle default value in iOS 13
根據蘋果文檔, 此屬性的默認值為 UIModalPresentationStyle.automatic 在 iOS 12 中,默認值為 UIModalPresentationStyle.fullScreen,這就是我得到的。 但是當我在 iOS 13 上運行我的應用程序時,我將.pageSheet ...
[英]adaptivePresentationStyle not Triggering for UIPopoverPresentationControllerDelegate on Compact (iPhone) Devices
我正在嘗試顯示一個UIViewController作為另一個的彈出窗口。 為此,我建立了以下... 但是,新的VC始終在緊湊型設備上以全屏模式顯示,而不是實際的彈出窗口。 根據我在此處和此處閱讀的內容,這是正常的行為,但應通過委托進行自定義。 我已經聲明要呈現的VC為實現UIP ...