How to create Form Sheet popup for iPad (iOS 8.1)(如何为 iPad (iOS 8.1) 创建表单弹出窗口)
问题描述
我想使用 Swift (8.1) 和演示类型表单"制作非常基本的弹出窗口,它应该是一个浮动在屏幕中间没有故事的窗口.
I want to make very basic popup window by using Swift (8.1) with presentation type "Form Sheet", it should be a window that float at the middle of the screen without tales.
我创建了两个视图控制器,一个按钮,并使用参数Present As Popover"将按钮从一个控制器连接到另一个控制器.第二个视图控制器被选为表单",但结果错误:
I created two View Controllers, one button and connect the button from one controller to another with parameter "Present As Popover". Second view controller was selected as "Form Sheet", but the result is wrong:
为什么?
推荐答案
不要将其呈现为 Popover.您希望 segue 为 Modal 并将其呈现为表单.在情节提要中,点击segue并将Segue"更改为Modal"
Don't present it as a Popover. You want the segue to be Modal and present it as a form sheet. In the storyboard, click on the segue and change the "Segue" to "Modal"
匆忙中,我使用了一个 Objective-C 项目来设置示例,而不是 Swift.下面是使用Present Modally"自适应 Segue 在 Swift 中的 Storyboard Segue 应该是什么.
In my haste, I used an Objective-C project for setting up an example instead of Swift. Below is what the Storyboard Segue should be in Swift using the "Present Modally" Adaptive Segue.
这篇关于如何为 iPad (iOS 8.1) 创建表单弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何为 iPad (iOS 8.1) 创建表单弹出窗口


基础教程推荐
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01