ios - 如何仅使用 Storyboards 呈现弹出窗口

标签 ios objective-c iphone swift storyboard

我使用的是 XCode 6.1,但没有“popover”选项。我的配置有问题吗?这是正常的吗?他们删除了吗?我现在如何显示弹出窗口?

这是针对 iPhone 开发,而不是 iPad。

the small view controller is to become the popover

最佳答案

来自文档 ( https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPopoverController_class/index.html )

Popover controllers are for use exclusively on iPad devices. Attempting to create one on other devices results in an exception.

如果你想使用弹出窗口之类的东西,你将不得不使用第三方代码。

关于ios - 如何仅使用 Storyboards 呈现弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27350025/

相关文章:

ios - 是否可以像在 Vuforia 中那样在 ARKit 中跟踪对象?

ios - 打开语音时未调用 didSelectRowAtIndexpath

iphone - NSArray containsObject NSString 不工作?

iphone - 错误 :'implicit declaration of function ' nslog' 在 C99' 无效

android - 通过自定义Socket实现的WebControl请求

ios - UICollectionView 仅在一个方向上显示动态大小的单元格

ios - 使用尚未触发的 block 使 NSTimer 无效 : Objective-C

objective-c - 使用dictionaryWithObjects时重复键会发生什么情况:forKeys:?

iphone - 哪个 JSON 库用于 iPhone 上的数据

iphone - 后台 MOC 的 "save:"无效(但返回 YES)