简体   繁体   English

iPhone:带故事板的弹出窗口

[英]iPhone:Popup window with storyboard

I would like to make a popupwindow like this: 我想制作一个像这样的弹出窗口:

http://www.touch-code-magazine.com/showing-a-popup-window-in-ios-class-for-download/ http://www.touch-code-magazine.com/showing-a-popup-window-in-ios-class-for-download/

However, It doesn't work on my xcode because i am developing an app for ios5, using a storyboard. 但是,它不适用于我的xcode,因为我正在使用故事板为ios5开发应用程序。 Do you know any othere examples similar to this? 你知道其他类似的例子吗?

thanks in advance. 提前致谢。

Storyboards handle the kind of window you are talking about. 故事板处理您正在谈论的那种窗口。

Make your segue "Modal", "Form Sheet", and "Default" 使您的segue“模态”,“表单”和“默认”

Then your new window make the size "Form Sheet". 然后你的新窗口使大小“表单”。

This should get you something similar to what you want without resorting to NIBs. 这应该可以让你得到类似于你想要的东西,而不需要求助于NIB。

没有理由不能使用Nib文件创建所需的视图,然后使用由故事板控制的VC以编程方式添加该视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM