gpt4 book ai didi

ios - iPad详细设置页面,如弹出viewController

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:18:54 26 4
gpt4 key购买 nike

我想澄清的第一件事是我不是在谈论 splitview Controller 。我想要一个带有导航 Controller 的弹出窗口,类似于您点击键盘>>语言或邮件>>新帐户时获得的导航 Controller 。

Popup style navigation Controller

现在这不是一个 popover Controller ,有什么可用的标准框架吗?也许我错过了显而易见的事情。这样做的好处是它有导航 Controller ,因此 View 会调整大小以适应后续的 tableview 长度。

最佳答案

这不是弹出窗口。这是一个 modalView 的呈现风格 UIModalPresentationFormSheet

检查这个link

有关更多演示样式,请参阅 ModalPresentationStyle

Presentation Styles

Presentation styles available when presenting view controllers.

typedef enum {

UIModalPresentationFullScreen = 0,

UIModalPresentationPageSheet,

UIModalPresentationFormSheet,

UIModalPresentationCurrentContext

} UIModalPresentationStyle;

Constants

UIModalPresentationFullScreen

The presented view covers the screen, taking into account the value of the wantsFullScreenLayout property.

Available in iOS 3.2 and later.

Declared in UIViewController.h.

UIModalPresentationPageSheet

The height of the presented view is set to the height of the screen and the view’s width is set to the width of the screen in a portrait orientation. Any uncovered areas are dimmed to prevent the user from interacting with them. (In portrait orientations, this option is essentially the same as UIModalPresentationFullScreen.)

Available in iOS 3.2 and later.

Declared in UIViewController.h.

UIModalPresentationFormSheet

The width and height of the presented view are smaller than those of the screen and the view is centered onscreen. If the device is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so the view remains visible. All uncovered areas are dimmed to prevent the user from interacting with them.

Available in iOS 3.2 and later.

Declared in UIViewController.h.

UIModalPresentationCurrentContext

The view is presented using the same style as its parent view controller.

When presenting a view controller in a popover, this presentation style is supported only if the transition style is > UIModalTransitionStyleCoverVertical. Attempting to use a different transition style triggers an exception. However, you may use other transition styles (except the partial curl transition) if the parent view controller is not in a popover.

Available in iOS 3.2 and later.

Declared in UIViewController.h.

关于ios - iPad详细设置页面,如弹出viewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13288724/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com