cost 108 ms
UIPresentationController 多種尺寸或定位器

[英]UIPresentationController multiple sizes or detents

我正在嘗試實現一個基本上模仿 UISheetPresentationController 行為的演示控制器。 我這樣做是因為我想添加第三個制動器,而且我希望它適用於 iOS 14,所以我不能使用現有的 UISheetPresentationController。 我把它放在可以顯示視圖控制器的地方, ...

Swift UIWindow如何在全屏模式下添加

[英]Swift UIWindow how to add in full screen mode

我正在嘗試添加另一個 UIWindow 並使其 makeKeyAndVisible 在主 window 之上。 但顯示為工作表(模態)而不是全屏模式我嘗試在 viewController 上使用 modalPresentationStyle 並且沒有任何變化。 ...

如何通過彈出框的行為全屏顯示 ViewController? Swift

[英]How to present ViewController in full screen with behavior of popover? Swift

我需要全屏顯示 VC,但能夠在彈出窗口時向下滑動它,類似於它在 Apple Music 中歌曲細節的工作方式。 我已經嘗試了 vc.modalPresentationStyle 中的每個選項,但它要么是全屏顯示,要么無法向下滑動關閉,要么具有此功能,但不能全屏顯示 ...

UIViewController 全屏演示之上自動演示

[英]UIViewController automatic presentation on top of full screen presentation

我有一些 UIViewControllers 使用modalPresentationStyle =.fullScreen 。 我想使用.automatic樣式在頂部展示另一個。 這可以正常工作,但沒有預期的卡片式樣式(下面的視圖 controller 縮小了)。 有什么辦法可以實現這種風格嗎? 我嘗 ...

如何通過導航 controller iOS 13 從模態呈現的 ViewController 將 ViewController 推送到全屏?

[英]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 ...

在 SwiftUI 中關閉模型表后如何推送新屏幕?

[英]How to push on new screen after dismiss model sheet in SwiftUI?

我必須實施類似在屏幕中創建登錄屏幕用戶可以輸入手機號碼並單擊登錄按鈕模型表將打開進行頂部驗證后必須關閉 OTP 驗證表並在儀表板上導航。 在這里,我在該 contentView 上創建了一個內容視圖,單擊打開模型按鈕,模型表(sheetView)將在單擊完成按鈕表后打開,而不是屏幕從Content ...

UIPopoverPresentationControllerDelegate 協議的 2 個 adaptivePresentationStyle 方法之間的區別

[英]Difference between 2 adaptivePresentationStyle methods of the UIPopoverPresentationControllerDelegate protocol

我正在使用彈出窗口視圖 controller,我不希望彈出窗口覆蓋全屏 (iOS 13)。 我試圖使用: 正在調用該方法,但顯示的彈出窗口始終是全屏,即使指定了較小的首選內容大小也是如此。 經過大量時間嘗試許多不同的事情后,我發現還有另一種方法有 2 個參數並使用它: 使用此方法使彈出屏幕為指定大小 ...

iOS 13 modalPresentationStyle = UIModalPresentationFullScreen對於MFMessageComposeViewController不起作用

[英]iOS 13 modalPresentationStyle = UIModalPresentationFullScreen not working for MFMessageComposeViewController

眾所周知,對於普通的UIViewController ,iOS 13+模態表示樣式將默認為.pageSheet 。 如果要更改它,可以在顯示時將其更改為所需的樣式。 我在我的應用程序中使用MFMailComposeViewController和MFMessageComposeViewCont ...

iOS 13 全屏 UIImagePickerController?

[英]iOS 13 Fullscreen UIImagePickerController?

我正在為 iOS 13 支持更新應用程序,其中一個要求(目前)是將所有模態UIViewControllers轉換回UIModalPresentationStyle.fullScreen ,但UIImagePickerController似乎不尊重我傳遞的值並且是當我挑選照片時總是在“卡片視圖”中, ...

與 ios 中的.overFullScreen 演示樣式相比,使用.fullScreen 演示樣式的好處

[英]Benefit of using .fullScreen presentation style in compare to .overFullScreen presentation style in ios

我很想知道,如果我們在 iOS 應用程序中以模態方式在 rootViewController 上呈現視圖 controller 時使用.fullScreen與.overFullScreen演示樣式,我們得到的實際好處是什么(例如)。 如果presentedViewController具有透明度,我使 ...

Google 和 Facebook 登錄控制器以模態方式呈現在 Xcode 11 iOS 13

[英]Google & Facebook Login Controllers presenting modally in Xcode 11 iOS 13

我已將 pod 更新到最新版本,並且重寫方法 所有其他控制器都顯示全屏,但 Google 和 Facebook 登錄仍顯示為頁面表。 我如何像之前一樣全屏顯示它們? 提前致謝! 更新我找到了解決方法。 如果我將我的 LoginViewController 設置為 window 的 rootVi ...

當視圖 controller 從 nib 文件加載時,以模態方式在當前上下文中呈現視圖 controller

[英]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 ...

如何:將 UIViewController 的 UIModalPresentationStyle 從.automatic 更改為.fullscreen

[英]How to: Change UIModalPresentationStyle from .automatic to .fullscreen for a UIViewController

我嘗試按照 Apple 文檔將modalPresentationStyle設置為 .fullscreen。 將modalPresentationStyle設置為.fullscreen如下代碼所示后,系統仍然在UIModalPresentationStyle.automatic "系統默認" 中呈現 ...

currentContext 和 overCurrentContext 有什么區別?

[英]What's the difference between currentContext and overCurrentContext?

currentContext和overCurrentContext的 文檔都有相同的描述。 我能發現的差異是: 因為它們何時可用: 使用currentContext ,在關閉呈現的視圖 controller 后,覆蓋視圖 controller 的viewWillAppear被調用(不一定是提供上 ...

緊湊型(iPhone)設備上的UIPopoverPresentationControllerDelegate不會觸發adaptivePresentationStyle

[英]adaptivePresentationStyle not Triggering for UIPopoverPresentationControllerDelegate on Compact (iPhone) Devices

我正在嘗試顯示一個UIViewController作為另一個的彈出窗口。 為此,我建立了以下... 但是,新的VC始終在緊湊型設備上以全屏模式顯示,而不是實際的彈出窗口。 根據我在此處和此處閱讀的內容,這是正常的行為,但應通過委托進行自定義。 我已經聲明要呈現的VC為實現UIP ...


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